<!doctype html><html lang="en">
 <head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  <title>CSS Fonts Module</title>
  <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
  <meta content="testing" name="csswg-work-status">
  <meta content="ED" name="w3c-status">
  <meta content="This CSS3 module describes how font properties are specified and how font resources are loaded dynamically.  The contents of this specification are a consolidation of content previously divided into <a href=&quot;https://www.w3.org/TR/2002/WD-css3-fonts-20020802/&quot;>CSS3 Fonts</a> and <a href=&quot;https://www.w3.org/TR/2002/WD-css3-webfonts-20020802/&quot;>CSS3 Web Fonts</a> modules. The description of font load events was moved into the <a href=&quot;https://drafts.csswg.org/css-font-load-events/&quot;>CSS3 Font Load Events</a> module." name="abstract">
  <link href="../default.css" rel="stylesheet" type="text/css">
  <link href="../csslogo.ico" rel="shortcut icon" type="image/x-icon">
<style>
  body {
    background: url("https://www.w3.org/StyleSheets/TR/logo-ED") top left no-repeat;
  }
  </style>
  <link href="https://www.w3.org/TR/css-fonts-3/" rel="canonical">
<script defer src="https://test.csswg.org/harness/annotate.js#!css-fonts-3_dev/css-fonts-3" type="text/javascript"></script>
<style type="text/css">
body, th, td, h1, h2, h3, h4, h5, h6 {
	font-family: "myriad-pro", sans-serif !important;
}

body {
	padding: 2em 70px 2em 70px;
}

p + p, p.mtb {
	margin-top: 0.8em;
	text-indent: 0px;
}

#bolderlighter {
	width: 40%;
}

#bolderlighter th {
	text-align: center;
}

#fontformats td, #eventhandlers td, #fontformats th, #eventhandlers th {
	padding-right: 2em;
	text-align: left;
}

dd {
	margin-bottom: 1em;
}

#authors dd {
	margin-bottom: 0;
}

#fontstylematchingalg {
	list-style-type: lower-alpha;
}

#fontmatchingalg ul, #fontmatchingalg ol {
	margin-top: 0.8em;
}

#fontmatchingalg li + li {
	margin-top: 0.8em;
}

div.example {
	padding: 1em;
	margin-top: 1em;
}

div.example + div.example {
	margin-top: 2em;
}

div.figure {
	page-break-inside: avoid;
}

pre.prod { white-space: pre-wrap; margin: 1em 0 1em 2em }

div.featex {
	width: 700px;
}

div.featex img {
	margin: auto;
	display: block;
}

span.tag {
	font-family: monospace;
	font-size: 120%;
}

ol ol {
	list-style-type: lower-alpha;
}

.idl-code {
	font-weight: bold;
	color: #c50;
}
</style>
<style>/* style-md-lists */

/* This is a weird hack for me not yet following the commonmark spec
   regarding paragraph and lists. */
[data-md] > :first-child {
    margin-top: 0;
}
[data-md] > :last-child {
    margin-bottom: 0;
}</style>
<style>/* style-selflinks */

.heading, .issue, .note, .example, li, dt {
    position: relative;
}
a.self-link {
    position: absolute;
    top: 0;
    left: calc(-1 * (3.5rem - 26px));
    width: calc(3.5rem - 26px);
    height: 2em;
    text-align: center;
    border: none;
    transition: opacity .2s;
    opacity: .5;
}
a.self-link:hover {
    opacity: 1;
}
.heading > a.self-link {
    font-size: 83%;
}
li > a.self-link {
    left: calc(-1 * (3.5rem - 26px) - 2em);
}
dfn > a.self-link {
    top: auto;
    left: auto;
    opacity: 0;
    width: 1.5em;
    height: 1.5em;
    background: gray;
    color: white;
    font-style: normal;
    transition: opacity .2s, background-color .2s, color .2s;
}
dfn:hover > a.self-link {
    opacity: 1;
}
dfn > a.self-link:hover {
    color: black;
}

a.self-link::before            { content: "¶"; }
.heading > a.self-link::before { content: "§"; }
dfn > a.self-link::before      { content: "#"; }</style>
<style>/* style-counters */

body {
    counter-reset: example figure issue;
}
.issue {
    counter-increment: issue;
}
.issue:not(.no-marker)::before {
    content: "Issue " counter(issue);
}

.example {
    counter-increment: example;
}
.example:not(.no-marker)::before {
    content: "Example " counter(example);
}
.invalid.example:not(.no-marker)::before,
.illegal.example:not(.no-marker)::before {
    content: "Invalid Example" counter(example);
}

figcaption {
    counter-increment: figure;
}
figcaption:not(.no-marker)::before {
    content: "Figure " counter(figure) " ";
}</style>
<style>/* style-autolinks */

.css.css, .property.property, .descriptor.descriptor {
    color: #005a9c;
    font-size: inherit;
    font-family: inherit;
}
.css::before, .property::before, .descriptor::before {
    content: "‘";
}
.css::after, .property::after, .descriptor::after {
    content: "’";
}
.property, .descriptor {
    /* Don't wrap property and descriptor names */
    white-space: nowrap;
}
.type { /* CSS value <type> */
    font-style: italic;
}
pre .property::before, pre .property::after {
    content: "";
}
[data-link-type="property"]::before,
[data-link-type="propdesc"]::before,
[data-link-type="descriptor"]::before,
[data-link-type="value"]::before,
[data-link-type="function"]::before,
[data-link-type="at-rule"]::before,
[data-link-type="selector"]::before,
[data-link-type="maybe"]::before {
    content: "‘";
}
[data-link-type="property"]::after,
[data-link-type="propdesc"]::after,
[data-link-type="descriptor"]::after,
[data-link-type="value"]::after,
[data-link-type="function"]::after,
[data-link-type="at-rule"]::after,
[data-link-type="selector"]::after,
[data-link-type="maybe"]::after {
    content: "’";
}

[data-link-type].production::before,
[data-link-type].production::after,
.prod [data-link-type]::before,
.prod [data-link-type]::after {
    content: "";
}

[data-link-type=element],
[data-link-type=element-attr] {
    font-family: Menlo, Consolas, "DejaVu Sans Mono", monospace;
    font-size: .9em;
}
[data-link-type=element]::before { content: "<" }
[data-link-type=element]::after  { content: ">" }

[data-link-type=biblio] {
    white-space: pre;
}</style>
<style>/* style-dfn-panel */

.dfn-panel {
    position: absolute;
    z-index: 35;
    height: auto;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 300px;
    max-height: 500px;
    overflow: auto;
    padding: 0.5em 0.75em;
    font: small Helvetica Neue, sans-serif, Droid Sans Fallback;
    background: #DDDDDD;
    color: black;
    border: outset 0.2em;
}
.dfn-panel:not(.on) { display: none; }
.dfn-panel * { margin: 0; padding: 0; text-indent: 0; }
.dfn-panel > b { display: block; }
.dfn-panel a { color: black; }
.dfn-panel a:not(:hover) { text-decoration: none !important; border-bottom: none !important; }
.dfn-panel > b + b { margin-top: 0.25em; }
.dfn-panel ul { padding: 0; }
.dfn-panel li { list-style: inside; }
.dfn-panel.activated {
    display: inline-block;
    position: fixed;
    left: .5em;
    bottom: 2em;
    margin: 0 auto;
    max-width: calc(100vw - 1.5em - .4em - .5em);
    max-height: 30vh;
}

.dfn-paneled { cursor: pointer; }
</style>
<style>/* style-syntax-highlighting */
pre.idl.highlight { color: #708090; }
.highlight:not(.idl) { background: hsl(24, 20%, 95%); }
code.highlight { padding: .1em; border-radius: .3em; }
pre.highlight, pre > code.highlight { display: block; padding: 1em; margin: .5em 0; overflow: auto; border-radius: 0; }
c-[a] { color: #990055 } /* Keyword.Declaration */
c-[b] { color: #990055 } /* Keyword.Type */
c-[c] { color: #708090 } /* Comment */
c-[d] { color: #708090 } /* Comment.Multiline */
c-[e] { color: #0077aa } /* Name.Attribute */
c-[f] { color: #669900 } /* Name.Tag */
c-[g] { color: #222222 } /* Name.Variable */
c-[k] { color: #990055 } /* Keyword */
c-[l] { color: #000000 } /* Literal */
c-[m] { color: #000000 } /* Literal.Number */
c-[n] { color: #0077aa } /* Name */
c-[o] { color: #999999 } /* Operator */
c-[p] { color: #999999 } /* Punctuation */
c-[s] { color: #a67f59 } /* Literal.String */
c-[t] { color: #a67f59 } /* Literal.String.Single */
c-[u] { color: #a67f59 } /* Literal.String.Double */
c-[cp] { color: #708090 } /* Comment.Preproc */
c-[c1] { color: #708090 } /* Comment.Single */
c-[cs] { color: #708090 } /* Comment.Special */
c-[kc] { color: #990055 } /* Keyword.Constant */
c-[kn] { color: #990055 } /* Keyword.Namespace */
c-[kp] { color: #990055 } /* Keyword.Pseudo */
c-[kr] { color: #990055 } /* Keyword.Reserved */
c-[ld] { color: #000000 } /* Literal.Date */
c-[nc] { color: #0077aa } /* Name.Class */
c-[no] { color: #0077aa } /* Name.Constant */
c-[nd] { color: #0077aa } /* Name.Decorator */
c-[ni] { color: #0077aa } /* Name.Entity */
c-[ne] { color: #0077aa } /* Name.Exception */
c-[nf] { color: #0077aa } /* Name.Function */
c-[nl] { color: #0077aa } /* Name.Label */
c-[nn] { color: #0077aa } /* Name.Namespace */
c-[py] { color: #0077aa } /* Name.Property */
c-[ow] { color: #999999 } /* Operator.Word */
c-[mb] { color: #000000 } /* Literal.Number.Bin */
c-[mf] { color: #000000 } /* Literal.Number.Float */
c-[mh] { color: #000000 } /* Literal.Number.Hex */
c-[mi] { color: #000000 } /* Literal.Number.Integer */
c-[mo] { color: #000000 } /* Literal.Number.Oct */
c-[sb] { color: #a67f59 } /* Literal.String.Backtick */
c-[sc] { color: #a67f59 } /* Literal.String.Char */
c-[sd] { color: #a67f59 } /* Literal.String.Doc */
c-[se] { color: #a67f59 } /* Literal.String.Escape */
c-[sh] { color: #a67f59 } /* Literal.String.Heredoc */
c-[si] { color: #a67f59 } /* Literal.String.Interpol */
c-[sx] { color: #a67f59 } /* Literal.String.Other */
c-[sr] { color: #a67f59 } /* Literal.String.Regex */
c-[ss] { color: #a67f59 } /* Literal.String.Symbol */
c-[vc] { color: #0077aa } /* Name.Variable.Class */
c-[vg] { color: #0077aa } /* Name.Variable.Global */
c-[vi] { color: #0077aa } /* Name.Variable.Instance */
c-[il] { color: #000000 } /* Literal.Number.Integer.Long */
</style>
 <body class="h-entry">
  <div class="head">
   <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2016/logos/W3C" width="72"> </a> </p>
   <h1 class="p-name no-ref" id="title">CSS Fonts Module</h1>
   <h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Editor’s Draft, <time class="dt-updated" datetime="1970-01-01">1 January 1970</time></span></h2>
   <details>
    <summary>Specification Metadata</summary>
    <div data-fill-with="spec-metadata">
     <dl>
      <dt>This version:
      <dd><a class="u-url" href="https://drafts.csswg.org/css-fonts/">https://drafts.csswg.org/css-fonts/</a>
      <dt>Latest published version:
      <dd><a href="https://www.w3.org/TR/css-fonts-3/">https://www.w3.org/TR/css-fonts-3/</a>
      <dt>Previous Versions:
      <dd><a href="https://www.w3.org/TR/2013/CR-css-fonts-3-20131003/" rel="prev">https://www.w3.org/TR/2013/CR-css-fonts-3-20131003/</a>
      <dd><a href="https://www.w3.org/TR/2013/WD-css-fonts-3-20130711/" rel="prev">https://www.w3.org/TR/2013/WD-css-fonts-3-20130711/</a>
      <dt>Test Suite:
      <dd><a href="http://test.csswg.org/suites/css3-fonts/nightly-unstable/">http://test.csswg.org/suites/css3-fonts/nightly-unstable/</a>
      <dt class="editor">Editor:
      <dd class="editor p-author h-card vcard" data-editor-id="77180"><a class="p-name fn u-email email" href="mailto:mmaxfield@apple.com">Myles C. Maxfield</a> (<span class="p-org org">Apple Inc.</span>)
      <dt>Suggest an Edit for this Spec:
      <dd><a href="https://github.com/w3c/csswg-drafts/blob/master/css-fonts-3/Overview.bs">GitHub Editor</a>
      <dt>Issue Tracking:
      <dd><a href="https://github.com/w3c/csswg-drafts/labels/css-fonts-3">GitHub Issues</a>
      <dt>Issues List:
      <dd><a href="http://www.w3.org/Style/CSS/Tracker/products/18">Tracker</a>
      <dd><a href="https://www.w3.org/Bugs/Public/buglist.cgi?query_format=advanced&amp;product=CSS&amp;component=Fonts&amp;bug_status=NEW&amp;bug_status=ASSIGNED&amp;bug_status=REOPENED">Bugzilla</a>
     </dl>
    </div>
   </details>
   <div data-fill-with="warning"></div>
   <p class="copyright" data-fill-with="copyright"><a href="https://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 1970 <a href="https://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a><sup>®</sup> (<a href="https://www.csail.mit.edu/"><abbr title="Massachusetts Institute of Technology">MIT</abbr></a>, <a href="https://www.ercim.eu/"><abbr title="European Research Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="https://www.keio.ac.jp/">Keio</a>, <a href="https://ev.buaa.edu.cn/">Beihang</a>). W3C <a href="https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document">permissive document license</a> rules apply. </p>
   <hr title="Separator for header">
  </div>
  <div class="p-summary" data-fill-with="abstract">
   <h2 class="no-num no-toc no-ref heading settled" id="abstract"><span class="content">Abstract</span></h2>
   <p>This CSS3 module describes how font properties are specified and how font resources are loaded dynamically.  The contents of this specification are a consolidation of content previously divided into <a href="https://www.w3.org/TR/2002/WD-css3-fonts-20020802/">CSS3 Fonts</a> and <a href="https://www.w3.org/TR/2002/WD-css3-webfonts-20020802/">CSS3 Web Fonts</a> modules. The description of font load events was moved into the <a href="https://drafts.csswg.org/css-font-load-events/">CSS3 Font Load Events</a> module.</p>
    <a href="https://www.w3.org/TR/CSS/">CSS</a> is a language for describing the rendering of structured documents
(such as HTML and XML)
on screen, on paper, etc. 
  </div>
  <h2 class="no-num no-toc no-ref heading settled" id="status"><span class="content">Status of this document</span></h2>
  <div data-fill-with="status">
   <p> This is a public copy of the editors’ draft.
	It is provided for discussion only and may change at any moment.
	Its publication here does not imply endorsement of its contents by W3C.
	Don’t cite this document other than as work in progress. </p>
   <p> <a href="https://github.com/w3c/csswg-drafts/issues">GitHub Issues</a> are preferred for discussion of this specification.
	When filing an issue, please put the text “css-fonts” in the title,
	preferably like this:
	“[css-fonts] <i data-lt>…summary of comment…</i>”.
	All issues and comments are <a href="https://lists.w3.org/Archives/Public/public-css-archive/">archived</a>,
	and there is also a <a href="https://lists.w3.org/Archives/Public/www-style/">historical archive</a>. </p>
   <p> This document was produced by the <a href="https://www.w3.org/Style/CSS/">CSS Working Group</a>. </p>
   <p> This document was produced by a group operating under
	the <a href="https://www.w3.org/Consortium/Patent-Policy/">W3C Patent Policy</a>.
	W3C maintains a <a href="https://www.w3.org/2004/01/pp-impl/32061/status" rel="disclosure">public list of any patent disclosures</a> made in connection with the deliverables of the group;
	that page also includes instructions for disclosing a patent.
	An individual who has actual knowledge of a patent which the individual believes contains <a href="https://www.w3.org/Consortium/Patent-Policy/#def-essential">Essential Claim(s)</a> must disclose the information in accordance with <a href="https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure">section 6 of the W3C Patent Policy</a>. </p>
   <p> This document is governed by the <a href="https://www.w3.org/2019/Process-20190301/" id="w3c_process_revision">1 March 2019 W3C Process Document</a>. </p>
   <p></p>
  </div>
  <div data-fill-with="at-risk">
   <p>The following features are at-risk, and may be dropped during the CR period: </p>
   <ul>
    <li>fallback handling for text decoration in superscript/subscript variant glyphs (<a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position">font-variant-position</a>), <a class="property" data-link-type="propdesc" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override">font-language-override</a> property
   </ul>
   <p>“At-risk” is a W3C Process term-of-art, and does not necessarily imply that the feature is in danger of being dropped or delayed. It means that the WG believes the feature may have difficulty being interoperably implemented in a timely manner, and marking it as such allows the WG to drop the feature if necessary when transitioning to the Proposed Rec stage, without having to publish a new Candidate Rec without the feature first.</p>
  </div>
  <nav data-fill-with="table-of-contents" id="toc">
   <h2 class="no-num no-toc no-ref" id="contents">Table of Contents</h2>
   <ol class="toc" role="directory">
    <li><a href="#introduction"><span class="secno">1</span> <span class="content">Introduction</span></a>
    <li><a href="#typography-background"><span class="secno">2</span> <span class="content">Typography Background</span></a>
    <li>
     <a href="#basic-font-props"><span class="secno">3</span> <span class="content">Basic Font Properties</span></a>
     <ol class="toc">
      <li>
       <a href="#font-family-prop"><span class="secno">3.1</span> <span class="content">Font family: the <span class="property">font-family</span> property</span></a>
       <ol class="toc">
        <li><a href="#generic-font-families"><span class="secno">3.1.1</span> <span class="content">Generic font families</span></a>
       </ol>
      <li><a href="#font-weight-prop"><span class="secno">3.2</span> <span class="content">Font weight: the <span class="property">font-weight</span> property</span></a>
      <li><a href="#font-stretch-prop"><span class="secno">3.3</span> <span class="content">Font width: the <span class="property">font-stretch</span> property</span></a>
      <li><a href="#font-style-prop"><span class="secno">3.4</span> <span class="content">Font style: the <span class="property">font-style</span> property</span></a>
      <li><a href="#font-size-prop"><span class="secno">3.5</span> <span class="content">Font size: the <span class="property">font-size</span> property</span></a>
      <li><a href="#font-size-adjust-prop"><span class="secno">3.6</span> <span class="content">Relative sizing: the <span class="property">font-size-adjust</span> property</span></a>
      <li><a href="#font-prop"><span class="secno">3.7</span> <span class="content">Shorthand font property: the <span class="property">font</span> property</span></a>
      <li><a href="#font-synthesis-prop"><span class="secno">3.8</span> <span class="content">Controlling synthetic faces: the <span class="property">font-synthesis</span> property</span></a>
     </ol>
    <li>
     <a href="#font-resources"><span class="secno">4</span> <span class="content">Font Resources</span></a>
     <ol class="toc">
      <li><a href="#font-face-rule"><span class="secno">4.1</span> <span class="content">The <span>@font-face</span> rule</span></a>
      <li><a href="#font-family-desc"><span class="secno">4.2</span> <span class="content">Font family: the <span class="css">font-family</span> descriptor</span></a>
      <li><a href="#src-desc"><span class="secno">4.3</span> <span class="content">Font reference: the <span class="css">src</span> descriptor</span></a>
      <li><a href="#font-prop-desc"><span class="secno">4.4</span> <span class="content"> Font property descriptors: the <span class="css">font-style</span>, <span class="css">font-weight</span>, <span class="css">font-stretch</span> descriptors</span></a>
      <li><a href="#unicode-range-desc"><span class="secno">4.5</span> <span class="content">Character range: the <span class="css">unicode-range</span> descriptor</span></a>
      <li><a href="#composite-fonts"><span class="secno">4.6</span> <span class="content">Using character ranges to define composite fonts</span></a>
      <li><a href="#font-rend-desc"><span class="secno">4.7</span> <span class="content">Font features: the <span class="css">font-variant</span> and <span class="css">font-feature-settings</span> descriptors</span></a>
      <li><a href="#font-face-loading"><span class="secno">4.8</span> <span class="content">Font loading guidelines</span></a>
      <li><a href="#font-fetching-requirements"><span class="secno">4.9</span> <span class="content">Font fetching requirements <span></span> <span></span> </span></a>
     </ol>
    <li>
     <a href="#font-matching-algorithm"><span class="secno">5</span> <span class="content">Font Matching Algorithm</span></a>
     <ol class="toc">
      <li><a href="#font-family-casing"><span class="secno">5.1</span> <span class="content">Case sensitivity of font family names</span></a>
      <li><a href="#font-style-matching"><span class="secno">5.2</span> <span class="content">Matching font styles</span></a>
      <li><a href="#cluster-matching"><span class="secno">5.3</span> <span class="content">Cluster matching</span></a>
      <li><a href="#char-handling-issues"><span class="secno">5.4</span> <span class="content">Character handling issues</span></a>
      <li><a href="#font-matching-changes"><span class="secno">5.5</span> <span class="content">Font matching changes since CSS 2.1</span></a>
      <li><a href="#font-matching-examples"><span class="secno">5.6</span> <span class="content">Font matching examples</span></a>
     </ol>
    <li>
     <a href="#font-rend-props"><span class="secno">6</span> <span class="content">Font Feature Properties</span></a>
     <ol class="toc">
      <li><a href="#glyph-selection-positioning"><span class="secno">6.1</span> <span class="content">Glyph selection and positioning</span></a>
      <li><a href="#language-specific-support"><span class="secno">6.2</span> <span class="content">Language-specific display</span></a>
      <li><a href="#font-kerning-prop"><span class="secno">6.3</span> <span class="content">Kerning: the <span class="property">font-kerning</span> property</span></a>
      <li><a href="#font-variant-ligatures-prop"><span class="secno">6.4</span> <span class="content">Ligatures: the <span class="property">font-variant-ligatures</span> property</span></a>
      <li><a href="#font-variant-position-prop"><span class="secno">6.5</span> <span class="content">Subscript and superscript forms: the <span class="property">font-variant-position</span> property</span></a>
      <li><a href="#font-variant-caps-prop"><span class="secno">6.6</span> <span class="content">Capitalization: the <span class="property">font-variant-caps</span> property</span></a>
      <li><a href="#font-variant-numeric-prop"><span class="secno">6.7</span> <span class="content">Numerical formatting: the <span class="property">font-variant-numeric</span> property</span></a>
      <li><a href="#font-variant-alternates-prop"><span class="secno">6.8</span> <span class="content">Alternates and swashes: the <span class="property">font-variant-alternates</span> property</span></a>
      <li>
       <a href="#font-feature-values"><span class="secno">6.9</span> <span class="content">Defining font specific alternates: the <span>@font-feature-values</span> rule</span></a>
       <ol class="toc">
        <li><a href="#basic-syntax"><span class="secno">6.9.1</span> <span class="content">Basic syntax</span></a>
        <li><a href="#multi-valued-features"><span class="secno">6.9.2</span> <span class="content">Multi-valued feature value definitions</span></a>
       </ol>
      <li><a href="#font-variant-east-asian-prop"><span class="secno">6.10</span> <span class="content">East Asian text rendering: the <span class="property">font-variant-east-asian</span> property</span></a>
      <li><a href="#font-variant-prop"><span class="secno">6.11</span> <span class="content">Overall shorthand for font rendering: the <span class="property">font-variant</span> property</span></a>
      <li><a href="#font-feature-settings-prop"><span class="secno">6.12</span> <span class="content">Low-level font feature settings control: the <span class="property">font-feature-settings</span> property</span></a>
      <li><a href="#font-language-override-prop"><span class="secno">6.13</span> <span class="content">Font language override: the <span class="property">font-language-override</span> property</span></a>
     </ol>
    <li>
     <a href="#font-feature-resolution"><span class="secno">7</span> <span class="content"> Font Feature Resolution <span></span> </span></a>
     <ol class="toc">
      <li><a href="#default-features"><span class="secno">7.1</span> <span class="content">Default features</span></a>
      <li><a href="#feature-precedence"><span class="secno">7.2</span> <span class="content">Feature precedence</span></a>
      <li><a href="#feature-precedence-examples"><span class="secno">7.3</span> <span class="content">Feature precedence examples</span></a>
     </ol>
    <li>
     <a href="#object-model"><span class="secno">8</span> <span class="content">Object Model</span></a>
     <ol class="toc">
      <li><a href="#om-fontface"><span class="secno">8.1</span> <span class="content">The <code class="idl"><span>CSSFontFaceRule</span></code> interface</span></a>
      <li><a href="#om-fontfeaturevalues"><span class="secno">8.2</span> <span class="content">The <code class="idl"><span>CSSFontFeatureValuesRule</span></code> interface</span></a>
     </ol>
    <li><a href="#platform-props-to-css"><span class="secno"></span> <span class="content">Appendix A: Mapping platform font properties to CSS properties</span></a>
    <li>
     <a href="#ch-ch-ch-changes"><span class="secno"></span> <span class="content">Changes</span></a>
     <ol class="toc">
      <li><a href="#recent-changes"><span class="secno"></span> <span class="content"> Changes from the <span>July 2013 CSS3 Fonts Last Call Working Draft</span></span></a>
     </ol>
    <li><a href="#acknowledgments"><span class="secno"></span> <span class="content">Acknowledgments</span></a>
    <li>
     <a href="#conformance"><span class="secno"></span> <span class="content"> Conformance</span></a>
     <ol class="toc">
      <li><a href="#document-conventions"><span class="secno"></span> <span class="content"> Document conventions</span></a>
      <li><a href="#conform-classes"><span class="secno"></span> <span class="content"> Conformance classes</span></a>
      <li>
       <a href="#conform-responsible"><span class="secno"></span> <span class="content"> Requirements for Responsible Implementation of CSS</span></a>
       <ol class="toc">
        <li><a href="#conform-partial"><span class="secno"></span> <span class="content"> Partial Implementations</span></a>
        <li><a href="#conform-future-proofing"><span class="secno"></span> <span class="content"> Implementations of Unstable and Proprietary Features</span></a>
        <li><a href="#conform-testing"><span class="secno"></span> <span class="content"> Implementations of CR-level Features</span></a>
       </ol>
     </ol>
    <li>
     <a href="#index"><span class="secno"></span> <span class="content">Index</span></a>
     <ol class="toc">
      <li><a href="#index-defined-here"><span class="secno"></span> <span class="content">Terms defined by this specification</span></a>
      <li><a href="#index-defined-elsewhere"><span class="secno"></span> <span class="content">Terms defined by reference</span></a>
     </ol>
    <li>
     <a href="#references"><span class="secno"></span> <span class="content">References</span></a>
     <ol class="toc">
      <li><a href="#normative"><span class="secno"></span> <span class="content">Normative References</span></a>
      <li><a href="#informative"><span class="secno"></span> <span class="content">Informative References</span></a>
     </ol>
    <li>
     <a href="#property-index"><span class="secno"></span> <span class="content">Property Index</span></a>
     <ol class="toc">
      <li><a href="#font-face-descriptor-table"><span class="secno"></span> <span class="content"><span>@font-face</span> Descriptors</span></a>
     </ol>
    <li><a href="#idl-index"><span class="secno"></span> <span class="content">IDL Index</span></a>
   </ol>
  </nav>
  <main>
<script src="http://use.typekit.com/xon2bky.js" type="text/javascript"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<script type="text/javascript">
window.onload = function () {
	if (!("devicePixelRatio" in window && window.devicePixelRatio > 1)) return;
	var i, hiresElements = document.getElementsByClassName("hires");
	for (i = 0; i < hiresElements.length; i++) {
		var h = hiresElements[i];
		if (h.tagName != "IMG") continue;
		var src = h.getAttribute("src");
		var src2x = src.replace(/\.\w+$/, function(m) { return "@2x" + m; });
		h.src = src2x;
	}
}
</script>
   <h2 class="heading settled" data-level="1" id="introduction"><span class="secno">1. </span><span class="content">Introduction</span><a class="self-link" href="#introduction"></a></h2>
   <p>A font provides a resource containing the visual representation of
characters.  At the simplest level it contains information that maps character
codes to shapes (called glyphs) that represent these characters.  Fonts
sharing a common design style are commonly grouped into font families
classified by a set of standard font properties.  Within a family, the
shape displayed for a given character can vary by stroke weight, slant
or relative width, among others. An individual font face is described by a
unique combination of these properties. For a given range of text, CSS
font properties are used to select a font family and a specific font
face within that family to be used when rendering that text.  As a
simple example, to use the bold form of Helvetica one could use:</p>
<pre>body {
  font-family: Helvetica;
  font-weight: bold;
}
</pre>
   <p>Font resources may be installed locally on the system on which a user
agent is running or downloadable.  For local font resources descriptive
information can be obtained directly from the font resource.  For
downloadable font resources (sometimes referred to as web fonts), the
descriptive information is included with the reference to the font
resource.</p>
   <p>Families of fonts typically don’t contain a single face for each
possible variation of font properties.  The CSS font selection mechanism
describes how to match a given set of CSS font properties to a single
font face.</p>
   <h2 class="heading settled" data-level="2" id="typography-background"><span class="secno">2. </span><span class="content">Typography Background</span><a class="self-link" href="#typography-background"></a></h2>
   <p><em>This section is non-normative.</em></p>
   <p>Typographic traditions vary across the globe, so there is no unique way
to classify all fonts across languages and cultures.  For even common
Latin letters, wide variations are possible:</p>
   <div class="figure">
    <img alt="variations in glyphs for a single character" src="aaaaaa.png">
    <p class="caption">One character, many glyph variations</p>
   </div>
   <p>Differences in the anatomy of letterforms is one way to distinguish
fonts.  For Latin fonts, flourishes at the ends of a character’s main
strokes, or serifs, can distinguish a font from those without.  Similar
comparisons exist in non-Latin fonts between fonts with tapered strokes
and those using primarily uniform strokes:</p>
   <div class="figure">
    <img alt="serif vs. non-serifs" src="serifvssansserif.png">
    <p class="caption">Letterforms with and without serifs</p>
   </div>
   <div class="figure">
    <img alt="serif vs. non-serifs for japanese" src="minchovsgothic.png">
    <p class="caption">Similar groupings for Japanese typefaces</p>
   </div>
   <p>Fonts contain letterforms and the data needed to map characters to
these letterforms. Often this may be a simple one-to-one mapping, but
more complex mappings are also possible. The use of combining diacritic
marks creates many variations for an underlying letterform:</p>
   <div class="figure">
    <img alt="diacritic marks" src="aaaaaa-diacritics.png">
    <p class="caption">Variations with diacritic marks</p>
   </div>
   <p>A sequence of characters can be represented by a single glyph known as a ligature:</p>
   <div class="figure">
    <img alt="example of a fi ligature" src="final-ligature.png">
    <p class="caption">Ligature example</p>
   </div>
   <p>Visual transformations based on textual context are often
stylistic option in European languages.  They are required to correctly
render languages like Arabic, the lam and alef characters below <em>must</em> be combined when they exist in sequence:</p>
   <div class="figure">
    <img alt="lam alef ligature" src="lamaleflig.png">
    <p class="caption">Required Arabic ligature</p>
   </div>
   <p>The relative complexity of these shaping transformations requires
additional data within the font.</p>
   <p>Sets of font faces with various stylistic variations are often
grouped together into font families.  In the simplest case a regular
face is supplemented with bold and italic faces, but much more extensive
groupings are possible.  Variations in the thickness of letterform
strokes, the <dfn data-dfn-type="dfn" data-noexport id="weight">weight<a class="self-link" href="#weight"></a></dfn>, and the overall proportions of the letterform,
the <dfn data-dfn-type="dfn" data-noexport id="width">width<a class="self-link" href="#width"></a></dfn>, are most common. In the example below, each letter uses a
different font face within the Univers font family.  The width used
increases from top to bottom and the weight increases from left to
right:</p>
   <div class="figure">
    <img alt="various width and weight variations within a single family" src="weightwidthvariations.png">
    <p class="caption">Weight and width variations within a single font family</p>
   </div>
   <p>Creating fonts that support multiple scripts is a difficult task;
designers need to understand the cultural traditions surrounding the
use of type in different scripts and come up with letterforms that
somehow share a common theme.  Many languages often share a common
script and each of these languages may have noticeable stylistic
differences.  For example, the Arabic script, when used for Persian and
Urdu, exhibits significant and systematic differences in letterforms,
as does Cyrillic when used with languages such as Serbian and
Russian.</p>
   <p>The <em>character map</em> of a font defines the mapping of characters
to glyphs for that font. If a document contains characters not
supported by the <a data-link-type="dfn" href="#character-map" id="ref-for-character-map">character maps</a> of the fonts contained in a font
family list, a
user agent may use a <em>system font fallback</em> procedure to locate an
appropriate font that does.  If no appropriate font can be found,
some form of "missing glyph" character will be rendered by the
user agent.  System fallback can occur when the specified list of font families
does not include a font that supports a given character.</p>
   <p>Although the <em>character map</em> of a font maps a given character to a
glyph for that character, modern font technologies such as OpenType
and AAT (Apple Advanced Typography) provide ways of mapping a
character to different glyphs based upon feature settings. Fonts in
these formats allow these features to be embedded in the font itself
and controlled by applications.  Common typographic features which can
be specified this way include ligatures, swashes, contextual
alternates, proportional and tabular figures, and automatic fractions,
to list just a few.  For a visual overview of OpenType features, see
the <a data-link-type="biblio" href="#biblio-opentype-font-guide">[OPENTYPE-FONT-GUIDE]</a>.</p>
   <h2 class="heading settled" data-level="3" id="basic-font-props"><span class="secno">3. </span><span class="content">Basic Font Properties</span><a class="self-link" href="#basic-font-props"></a></h2>
   <p>The particular font face used to render a character is determined by
the font family and other font properties that apply to a given element.
 This structure allows settings to be varied independent of each
other.</p>
   <h3 class="heading settled" data-level="3.1" id="font-family-prop"><span class="secno">3.1. </span><span class="content">Font family: the <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family">font-family</a> property</span><a class="self-link" href="#font-family-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-family">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-family">font-family</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">[ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-4/#family-name-value" id="ref-for-family-name-value">&lt;family-name></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one">|</a> <a class="production css" data-link-type="type" href="#typedef-generic-family" id="ref-for-typedef-generic-family" title="Expands to: monospace | fantasy | cursive | serif | sans-serif">&lt;generic-family></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma">#</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>depends on user agent
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animatable:</a>
      <td>no
   </table>
   <p>This property specifies a prioritized list of font family names or
generic family names.  A font family defines a set of faces that vary
in weight, width or slope.  CSS uses the combination of a family name
with other style attributes to select an individual face.  Using this
selection mechanism, rather than selecting a face via the style name
as is often done in design applications, allows some degree of
regularity in textual display when fallback occurs.</p>
   <p class="note" role="note"><span>Note:</span> Designers should note that the CSS definition of font
attributes used for selection are explicitly not intended to define a
font taxonomy.  A type designer’s idea of a family may often extend to
a set of faces that vary along axes other than just the standard axes
of weight, width and slope.  A family may extend to include both a set
of serif faces and a set of sans-serif faces or vary along axes that
are unique to that family. The CSS font selection mechanism merely
provides a way to determine the “closest” substitute when
substitution is necessary.</p>
   <p>Unlike other CSS properties, component values are a comma-separated
list indicating alternatives.  A user agent iterates through the list
of family names until it matches an available font that contains a
glyph for the character to be rendered.  This allows for differences
in available fonts across platforms and for differences in the range
of characters supported by individual fonts.</p>
   <p>A font family name only specifies a name given to a set of font
faces, it does not specify an individual face.  For example, given the availability
of the fonts below, Futura would match but Futura Medium would not:</p>
   <div class="figure">
    <img alt="family and face names" src="familyvsfacename.png">
    <p class="caption">Family and individual face names</p>
   </div>
   <p>Consider the example below:</p>
   <div class="example" id="example-afcfd32d">
    <a class="self-link" href="#example-afcfd32d"></a> 
<pre>body {    font-family: Helvetica, Verdana, sans-serif;
}</pre>
    <p>If Helvetica is available it will be used when rendering.  If
neither Helvetica nor Verdana is present, then the user-agent-defined
sans serif font will be used.</p>
   </div>
   <p>There are two types of font family names:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-family" data-dfn-type="value" data-export id="family-name-value"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-4/#family-name-value" id="ref-for-family-name-value①">&lt;family-name></a><a class="self-link" href="#family-name-value"></a></dfn> 
    <dd>The name of a font family of choice such as Helvetica or Verdana in the previous example. 
    <dt><dfn class="css" data-dfn-for="font-family" data-dfn-type="value" data-export id="generic-family-value"><a class="production css" data-link-type="type" href="#typedef-generic-family" id="ref-for-typedef-generic-family①" title="Expands to: monospace | fantasy | cursive | serif | sans-serif">&lt;generic-family></a><a class="self-link" href="#generic-family-value"></a></dfn> 
    <dd> The following generic family keywords are defined: <a class="css" data-link-type="maybe" href="#valdef-generic-family-serif" id="ref-for-valdef-generic-family-serif">serif</a>, <a class="css" data-link-type="maybe" href="#valdef-generic-family-sans-serif" id="ref-for-valdef-generic-family-sans-serif">sans-serif</a>, <a class="css" data-link-type="maybe" href="#valdef-generic-family-cursive" id="ref-for-valdef-generic-family-cursive">cursive</a>, <a class="css" data-link-type="maybe" href="#valdef-generic-family-fantasy" id="ref-for-valdef-generic-family-fantasy">fantasy</a>, and <a class="css" data-link-type="maybe" href="#valdef-generic-family-monospace" id="ref-for-valdef-generic-family-monospace">monospace</a>. These keywords can be used as a general fallback mechanism
		when an author’s desired font choices are not available.  As keywords, they must not
		be quoted. Authors are encouraged to append a generic font family as a last alternative for
		improved robustness. 
   </dl>
   <p>Font family names other than generic families must either be given quoted as <a href="https://www.w3.org/TR/CSS21/syndata.html#strings">strings,</a> or unquoted as a sequence of one or more <a href="https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier">identifiers.</a> This means most punctuation characters and digits at the start of
each token must be escaped in unquoted font family names.</p>
   <p>To illustrate this, the following declarations are invalid:</p>
<pre>font-family: Red/Black, sans-serif;
font-family: "Lucida" Grande, sans-serif;
font-family: Ahem!, sans-serif;
font-family: test@foo, sans-serif;
font-family: #POUND, sans-serif;
font-family: Hawaii 5-0, sans-serif;
</pre>
   <p>If a sequence of identifiers is given as a font family name,
the computed value is the name converted to a string by joining
all the identifiers in the sequence by single spaces.</p>
   <p>To avoid mistakes in escaping, it is recommended to quote font
family names that contain white space, digits, or punctuation
characters other than hyphens:</p>
<pre>body { font-family: "New Century Schoolbook", serif }

&lt;BODY STYLE="font-family: '21st Century', fantasy">
</pre>
   <p>Font family <em>names</em> that happen to be the same as a keyword
value (<a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-cascade-4/#valdef-all-inherit" id="ref-for-valdef-all-inherit">inherit</a>, <a class="css" data-link-type="maybe" href="#valdef-generic-family-serif" id="ref-for-valdef-generic-family-serif①">serif</a>, <a class="css" data-link-type="maybe" href="#valdef-generic-family-sans-serif" id="ref-for-valdef-generic-family-sans-serif①">sans-serif</a>, <a class="css" data-link-type="maybe" href="#valdef-generic-family-monospace" id="ref-for-valdef-generic-family-monospace①">monospace</a>, <a class="css" data-link-type="maybe" href="#valdef-generic-family-fantasy" id="ref-for-valdef-generic-family-fantasy①">fantasy</a>, and <a class="css" data-link-type="maybe" href="#valdef-generic-family-cursive" id="ref-for-valdef-generic-family-cursive①">cursive</a>) must be quoted to prevent confusion with the keywords with
the same names. The keywords <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-cascade-4/#valdef-all-initial" id="ref-for-valdef-all-initial">initial</a> and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-ui-4/#valdef-cursor-default" id="ref-for-valdef-cursor-default">default</a> are reserved for
future use and must also be quoted when used as font names. UAs must
not consider these keywords as matching the <var>&lt;family-name></var> type.</p>
   <p>The precise way a set of fonts are grouped into font families
varies depending upon the platform font management API’s.  The
Windows GDI API only allows four faces to be grouped into a family
while the DirectWrite API and API’s on OSX and other platforms support
font families with a variety of weights, widths and slopes (see <a href="#platform-props-to-css">Appendix A</a> for more details).</p>
   <p>Some font formats allow fonts to carry multiple localizations
of the family name. User agents must recognize and correctly
match all of these names independent of the underlying platform
localization, system API used or document encoding:</p>
   <div class="figure">
    <img alt="examples of localized family names" src="localizedfamilynames.png">
    <p class="caption">Localized family names</p>
   </div>
   <p>The details of localized font family name matching and the
corresponding issues of case sensitivity are described below in the <a href="#font-family-casing">font matching</a> section.</p>
   <h4 class="heading settled" data-level="3.1.1" id="generic-font-families"><span class="secno">3.1.1. </span><span class="content">Generic font families</span><a class="self-link" href="#generic-font-families"></a></h4>
   <p>All five generic font families are defined to exist in all CSS
implementations (they need not necessarily map to five distinct actual
fonts). User agents should provide reasonable default choices for the
generic font families, which express the characteristics of each family
as well as possible within the limits allowed by the underlying
technology. User agents are encouraged to allow users to select
alternative choices for the generic fonts.</p>
   <p>The syntax of <dfn class="dfn-paneled css" data-dfn-type="type" data-export id="typedef-generic-family">&lt;generic-family></dfn> is:</p>
<pre class="prod">&lt;generic-family> = serif <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①">|</a> sans-serif <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②">|</a> cursive <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③">|</a> fantasy <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④">|</a> monospace</pre>
   <h5 class="no-num no-toc heading settled" id="serif-family"><span class="content"><dfn class="dfn-paneled css" data-dfn-for="<generic-family>" data-dfn-type="value" data-export id="valdef-generic-family-serif">serif</dfn></span><a class="self-link" href="#serif-family"></a></h5>
   <p>Serif fonts represent the formal text style for a script.
This often means but is not limited to glyphs that have finishing
strokes, flared or tapering ends, or have actual serifed endings
(including slab serifs). Serif fonts are typically
proportionately-spaced. They often display a greater variation between
thick and thin strokes than fonts from the <a class="css" data-link-type="maybe" href="#valdef-generic-family-sans-serif" id="ref-for-valdef-generic-family-sans-serif②">sans-serif</a> generic font
family. CSS uses the term <a class="css" data-link-type="maybe" href="#valdef-generic-family-serif" id="ref-for-valdef-generic-family-serif②">serif</a> to apply to a font for any script,
although other names may be more familiar for particular scripts, such
as Mincho (Japanese), Sung, Song or Kai (Chinese), Batang (Korean).
For Arabic, the Naskh style would correspond to <span class="css" id="ref-for-valdef-generic-family-serif③">serif</span> more due to
its typographic role rather than its actual design style.
Any font that is so described may be used to represent the
generic <span class="css" id="ref-for-valdef-generic-family-serif④">serif</span> family.</p>
   <div class="figure">
    <img alt="sample serif fonts" src="serifexamples.png">
    <p class="caption">Sample serif fonts</p>
   </div>
   <h5 class="no-num no-toc heading settled" id="sans-serif-family"><span class="content"><dfn class="dfn-paneled css" data-dfn-for="<generic-family>" data-dfn-type="value" data-export id="valdef-generic-family-sans-serif">sans-serif</dfn></span><a class="self-link" href="#sans-serif-family"></a></h5>
   <p>Glyphs in sans-serif fonts, as the term is used in CSS, are generally
low contrast (vertical and horizontal stems have the close to the same
thickness) and have stroke
endings that are plain -- without any flaring, cross stroke, or other
ornamentation. Sans-serif fonts are typically
proportionately-spaced. They often have little variation between thick
and thin strokes, compared to fonts from the <a class="css" data-link-type="maybe" href="#valdef-generic-family-serif" id="ref-for-valdef-generic-family-serif⑤">serif</a> family. CSS uses
the term <a class="css" data-link-type="maybe" href="#valdef-generic-family-sans-serif" id="ref-for-valdef-generic-family-sans-serif③">sans-serif</a> to apply to a font for any script, although
other names may be more familiar for particular scripts, such as
Gothic (Japanese), Hei (Chinese), or Gulim (Korean). Any font that
is so described may be used to represent the generic <span class="css" id="ref-for-valdef-generic-family-sans-serif④">sans-serif</span> family.</p>
   <div class="figure">
    <img alt="sample sans-serif fonts" src="sansserifexamples.png">
    <p class="caption">Sample sans-serif fonts</p>
   </div>
   <h5 class="no-num no-toc heading settled" id="cursive-family"><span class="content"><dfn class="dfn-paneled css" data-dfn-for="<generic-family>" data-dfn-type="value" data-export id="valdef-generic-family-cursive">cursive</dfn></span><a class="self-link" href="#cursive-family"></a></h5>
   <p>Glyphs in cursive fonts generally use a more informal script style,
and the result looks more like handwritten pen or brush writing than
printed letterwork. CSS uses the term <a class="css" data-link-type="maybe" href="#valdef-generic-family-cursive" id="ref-for-valdef-generic-family-cursive②">cursive</a> to apply to a font for
any script, although other names such as Chancery, Brush, Swing and
Script are also used in font names.</p>
   <div class="figure">
    <img alt="sample cursive fonts" src="cursiveexamples.png">
    <p class="caption">Sample cursive fonts</p>
   </div>
   <h5 class="no-num no-toc heading settled" id="fantasy-family"><span class="content"><dfn class="dfn-paneled css" data-dfn-for="<generic-family>" data-dfn-type="value" data-export id="valdef-generic-family-fantasy">fantasy</dfn></span><a class="self-link" href="#fantasy-family"></a></h5>
   <p>Fantasy fonts are primarily decorative or expressive fonts that contain decorative or
expressive representations of characters.
These do not include Pi or Picture fonts which do not represent actual characters.</p>
   <div class="figure">
    <img alt="sample fantasy fonts" src="fantasyexamples.png">
    <p class="caption">Sample fantasy fonts</p>
   </div>
   <h5 class="no-num no-toc heading settled" id="monospace-family"><span class="content"><dfn class="dfn-paneled css" data-dfn-for="<generic-family>" data-dfn-type="value" data-export id="valdef-generic-family-monospace">monospace</dfn></span><a class="self-link" href="#monospace-family"></a></h5>
   <p>The sole criterion of a monospace font is that all glyphs have the same fixed width.  This is often used
to render samples of computer code.</p>
   <div class="figure">
    <img alt="sample monospace fonts" src="monospaceexamples.png">
    <p class="caption">Sample monospace fonts</p>
   </div>
   <h3 class="heading settled" data-level="3.2" id="font-weight-prop"><span class="secno">3.2. </span><span class="content">Font weight: the <a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight">font-weight</a> property</span><a class="self-link" href="#font-weight-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-weight">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-weight">font-weight</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤">|</a> bold <span id="ref-for-comb-one⑥">|</span> bolder <span id="ref-for-comb-one⑦">|</span> lighter <span id="ref-for-comb-one⑧">|</span> 100 <span id="ref-for-comb-one⑨">|</span> 200 <span id="ref-for-comb-one①⓪">|</span> 300 <span id="ref-for-comb-one①①">|</span> 400 <span id="ref-for-comb-one①②">|</span> 500 <span id="ref-for-comb-one①③">|</span> 600 <span id="ref-for-comb-one①④">|</span> 700 <span id="ref-for-comb-one①⑤">|</span> 800 <span id="ref-for-comb-one①⑥">|</span> 900
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>numeric weight value (see description)
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animatable:</a>
      <td>as font weight
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight①">font-weight</a> property specifies the weight of glyphs in the font,
their degree of blackness or stroke thickness.</p>
   <p>Values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-100">100<a class="self-link" href="#valdef-font-weight-100"></a></dfn>, <dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-200">200<a class="self-link" href="#valdef-font-weight-200"></a></dfn>, <dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-300">300<a class="self-link" href="#valdef-font-weight-300"></a></dfn>, <dfn class="dfn-paneled css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-400">400</dfn>, <dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-500">500<a class="self-link" href="#valdef-font-weight-500"></a></dfn>, <dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-600">600<a class="self-link" href="#valdef-font-weight-600"></a></dfn>, <dfn class="dfn-paneled css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-700">700</dfn>, <dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-800">800<a class="self-link" href="#valdef-font-weight-800"></a></dfn>, <dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-900">900<a class="self-link" href="#valdef-font-weight-900"></a></dfn> 
    <dd>
      These values form an ordered sequence,
		where each number indicates a weight that is at least as dark as its predecessor.
		These roughly correspond to the commonly used weight names below: 
     <ul>
      <li data-md>
       <p>100 - Thin</p>
      <li data-md>
       <p>200 - Extra Light (Ultra Light)</p>
      <li data-md>
       <p>300 - Light</p>
      <li data-md>
       <p>400 - Normal</p>
      <li data-md>
       <p>500 - Medium</p>
      <li data-md>
       <p>600 - Semi Bold (Demi Bold)</p>
      <li data-md>
       <p>700 - Bold</p>
      <li data-md>
       <p>800 - Extra Bold (Ultra Bold)</p>
      <li data-md>
       <p>900 - Black (Heavy)</p>
     </ul>
    <dt><dfn class="css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-normal">normal<a class="self-link" href="#valdef-font-weight-normal"></a></dfn> 
    <dd>Same as <a class="css" data-link-type="maybe" href="#valdef-font-weight-400" id="ref-for-valdef-font-weight-400">400</a>. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-bold">bold</dfn> 
    <dd>Same as <a class="css" data-link-type="maybe" href="#valdef-font-weight-700" id="ref-for-valdef-font-weight-700">700</a>. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-bolder">bolder</dfn> 
    <dd>Specifies a bolder weight than the inherited value. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-weight" data-dfn-type="value" data-export id="valdef-font-weight-lighter">lighter</dfn> 
    <dd>Specifies a lighter weight than the inherited value. 
   </dl>
   <p>Font formats that use a scale other than a nine-step scale should map
their scale onto the CSS scale so that <a class="css" data-link-type="maybe" href="#valdef-font-weight-400" id="ref-for-valdef-font-weight-400①">400</a> roughly corresponds with a
face that would be labeled as Regular, Book, Roman and <a class="css" data-link-type="maybe" href="#valdef-font-weight-700" id="ref-for-valdef-font-weight-700①">700</a> roughly
matches a face that would be labeled as Bold.  Or weights may be
inferred from the style names, ones that correspond roughly with the
scale above.  The scale is relative, so a face with a larger weight value
must never appear lighter.  If style names are used to infer weights,
care should be taken to handle variations in style names across locales.</p>
   <p>Quite often there are only a few weights available for a particular
font family.  When a weight is specified for which no face exists, a
face with a nearby weight is used. In general, bold weights map to faces
with heavier weights and light weights map to faces with lighter weights
(see <a href="#font-matching-algorithm">§ 5 Font Matching Algorithm</a> for a precise definition). The examples here illustrate which
face is used for different weights, grey indicates a face for that
weight does not exist so a face with a nearby weight is used:</p>
   <div class="figure">
    <img alt="weight mappings for a family with 400, 700 and 900 weights" src="optimaweights.png">
    <p class="caption">Weight mappings for a font family with 400, 700 and 900 weight faces</p>
   </div>
   <div class="figure">
    <img alt="weight mappings for a family with 300, 600 weights" src="hiraginoweights.png">
    <p class="caption">Weight mappings for a font family with 300 and 600 weight faces</p>
   </div>
   <p>Although the practice is not well-loved by typographers, bold faces are often
synthesized by user agents for faces that lack actual bold faces. For
the purposes of style matching, these faces must be treated as if they
exist within the family.  Authors can explicitly avoid this behavior
by using the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis">font-synthesis</a> property.</p>
   <p>Specified values of <a class="css" data-link-type="maybe" href="#valdef-font-weight-bolder" id="ref-for-valdef-font-weight-bolder">bolder</a> and <a class="css" data-link-type="maybe" href="#valdef-font-weight-lighter" id="ref-for-valdef-font-weight-lighter">lighter</a> indicate weights
relative to the weight of the parent element.  The computed weight is
calculated based on the inherited <a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight②">font-weight</a> value using the chart
below.</p>
   <table class="data" id="bolderlighter" summary="Bolder/lighter mappings">
    <thead>
     <tr>
      <th>Inherited value 
      <th>bolder 
      <th>lighter 
    <tbody>
     <tr>
      <th>100
      <td>400
      <td>100 
     <tr>
      <th>200
      <td>400
      <td>100 
     <tr>
      <th>300
      <td>400
      <td>100 
     <tr>
      <th>400
      <td>700
      <td>100 
     <tr>
      <th>500
      <td>700
      <td>100 
     <tr>
      <th>600
      <td>900
      <td>400 
     <tr>
      <th>700
      <td>900
      <td>400 
     <tr>
      <th>800
      <td>900
      <td>700 
     <tr>
      <th>900
      <td>900
      <td>700 
   </table>
   <p>The table above is equivalent to selecting the next relative bolder or lighter face,
given a font family containing normal and bold faces along with a thin and a heavy face.
Authors who desire finer control over the exact weight values used for a given element
may use numerical values instead of relative weights.</p>
   <h3 class="heading settled" data-level="3.3" id="font-stretch-prop"><span class="secno">3.3. </span><span class="content">Font width: the <a class="property" data-link-type="propdesc" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch">font-stretch</a> property</span><a class="self-link" href="#font-stretch-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-stretch">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-stretch">font-stretch</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⑦">|</a> ultra-condensed <span id="ref-for-comb-one①⑧">|</span> extra-condensed <span id="ref-for-comb-one①⑨">|</span> condensed <span id="ref-for-comb-one②⓪">|</span> semi-condensed <span id="ref-for-comb-one②①">|</span> semi-expanded <span id="ref-for-comb-one②②">|</span> expanded <span id="ref-for-comb-one②③">|</span> extra-expanded <span id="ref-for-comb-one②④">|</span> ultra-expanded
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animatable:</a>
      <td>as font stretch
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①">font-stretch</a> property selects a normal,
condensed, or expanded face from a font family. Absolute keyword values
have the following ordering, from narrowest to widest:</p>
   <ul>
    <li><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-ultra-condensed">ultra-condensed<a class="self-link" href="#valdef-font-stretch-ultra-condensed"></a></dfn> 
    <li><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-extra-condensed">extra-condensed<a class="self-link" href="#valdef-font-stretch-extra-condensed"></a></dfn> 
    <li><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-condensed">condensed<a class="self-link" href="#valdef-font-stretch-condensed"></a></dfn> 
    <li><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export data-lt="semi-condensed" id="valdef-font-stretch-semi-condensed">semi-condensed <a class="self-link" href="#valdef-font-stretch-semi-condensed"></a></dfn> 
    <li><dfn class="dfn-paneled css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-normal">normal</dfn> 
    <li><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-semi-expanded">semi-expanded<a class="self-link" href="#valdef-font-stretch-semi-expanded"></a></dfn> 
    <li><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-expanded">expanded<a class="self-link" href="#valdef-font-stretch-expanded"></a></dfn> 
    <li><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-extra-expanded">extra-expanded<a class="self-link" href="#valdef-font-stretch-extra-expanded"></a></dfn> 
    <li><dfn class="css" data-dfn-for="font-stretch" data-dfn-type="value" data-export id="valdef-font-stretch-ultra-expanded">ultra-expanded<a class="self-link" href="#valdef-font-stretch-ultra-expanded"></a></dfn> 
   </ul>
   <p>When a face does not exist
for a given width, normal or condensed values map to a narrower face,
otherwise a wider face.  Conversely, expanded values map to a wider
face, otherwise a narrower face.  The figure below shows how the nine
font-stretch property settings affect font selection for font family
containing a variety of widths, grey indicates a width for which no
face exists and a different width is substituted:</p>
   <div class="figure">
    <img alt="width mappings for a family with condensed, normal and expanded faces" src="universwidths.png">
    <p class="caption">Width mappings for a font family with condensed, normal and expanded width faces</p>
   </div>
   <p id="font-stretch-animation">Animation of font stretch:  Font stretch is
interpolated in discrete steps.  The interpolation happens as though the
ordered values are equally spaced real numbers.  The interpolation result
is rounded to the nearest value, with values exactly halfway between two
values rounded towards the later value in the list above. </p>
   <h3 class="heading settled" data-level="3.4" id="font-style-prop"><span class="secno">3.4. </span><span class="content">Font style: the <a class="property" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style">font-style</a> property</span><a class="self-link" href="#font-style-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-style">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-style">font-style</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑤">|</a> italic <span id="ref-for-comb-one②⑥">|</span> oblique
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specifed
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animatable:</a>
      <td>no
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style①">font-style</a> property allows
italic or oblique faces to be selected. Italic forms are generally cursive in nature while oblique faces are
typically sloped versions of the regular face.  Oblique faces can be simulated by artificially sloping the
glyphs of the regular face. Compare the artificially sloped renderings of Palatino "a" and Baskerville "N"
in grey with the actual italic versions:</p>
   <div class="figure">
    <img alt="artificial sloping vs. real italics" src="realvsfakeitalics.png">
    <p class="caption">Artificial sloping versus real italics</p>
   </div>
   <p>Values have the following meanings:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-style" data-dfn-type="value" data-export id="valdef-font-style-normal">normal</dfn> 
    <dd>selects a face that is classified as a normal face, one that is neither italic or obliqued 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-style" data-dfn-type="value" data-export id="valdef-font-style-italic">italic</dfn> 
    <dd>selects a font that is labeled as an italic face, or an oblique face if one is not 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-style" data-dfn-type="value" data-export id="valdef-font-style-oblique">oblique</dfn> 
    <dd>selects a font that is labeled as an oblique face, or an italic face if one is not 
   </dl>
   <p>If no italic or oblique face is available, oblique faces can be
synthesized by rendering non-obliqued faces with an artificial
obliquing operation.  The use of these artificially obliqued faces
can be disabled using the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis①">font-synthesis</a> property.  The details
of the obliquing operation are not explicitly defined.</p>
   <p class="note" role="note"><span>Note:</span> Authors should also be aware that synthesized
approaches may not be suitable for scripts like Cyrillic, where italic
forms are very different in shape.  It is always better to use an actual
italic font rather than rely on a synthetic version.</p>
   <p>Many scripts lack the tradition of mixing a cursive form within
text rendered with a normal face.  Chinese, Japanese and Korean fonts
almost always lack italic or oblique faces.  Fonts that support a
mixture of scripts will sometimes omit specific scripts such as Arabic
from the set of glyphs supported in the italic face. User agents
should be careful about making <em>character map</em> assumptions across
faces when implementing support for <em>system font fallback</em>.</p>
   <h3 class="heading settled" data-level="3.5" id="font-size-prop"><span class="secno">3.5. </span><span class="content">Font size: the <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size">font-size</a> property</span><a class="self-link" href="#font-size-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-size">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-size">font-size</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod"><a class="production css" data-link-type="type" href="#typedef-font-size-absolute-size" id="ref-for-typedef-font-size-absolute-size">&lt;absolute-size></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑦">|</a> <a class="production css" data-link-type="type" href="#typedef-font-size-relative-size" id="ref-for-typedef-font-size-relative-size">&lt;relative-size></a> <span id="ref-for-comb-one②⑧">|</span> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage">&lt;length-percentage></a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>medium
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>refer to parent element’s font size
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>absolute length
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animatable:</a>
      <td>as length
   </table>
   <p>This property indicates the desired height of glyphs from the
font. For scalable fonts, the font-size is a scale factor applied to the EM unit
of the font. (Note that certain glyphs may bleed outside their EM box.) For
non-scalable fonts, the font-size is converted into absolute units and matched
against the declared font-size of the font, using the same absolute coordinate
space for both of the matched values.
Values have the following meanings:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-size" data-dfn-type="type" data-export id="typedef-font-size-absolute-size">&lt;absolute-size></dfn> 
    <dd>
      An <a class="production css" data-link-type="type" href="#typedef-font-size-absolute-size" id="ref-for-typedef-font-size-absolute-size①">&lt;absolute-size></a> keyword refers to an entry
in a table of font sizes computed and kept by the user agent. Possible values
are: 
<pre class="prod"><a data-link-type="value">xx-small</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one②⑨">|</a> <a data-link-type="value">x-small</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⓪">|</a> <a data-link-type="value">small</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③①">|</a> <a data-link-type="value">medium</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③②">|</a> <a data-link-type="value">large</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③③">|</a> <a data-link-type="value">x-large</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③④">|</a> <a data-link-type="value">xx-large</a>
</pre>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-size" data-dfn-type="type" data-export id="typedef-font-size-relative-size">&lt;relative-size></dfn> 
    <dd>
      A <a class="production css" data-link-type="type" href="#typedef-font-size-relative-size" id="ref-for-typedef-font-size-relative-size①">&lt;relative-size></a> keyword is interpreted
	relative to the table of font sizes and the computed <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①">font-size</a> of the
	parent element. Possible values are: 
<pre class="prod"><dfn class="dfn-paneled" data-dfn-for="<relative-size> font-size" data-dfn-type="value" data-export id="valdef-relative-size-font-size-larger">larger</dfn> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑤">|</a> <dfn data-dfn-for="<relative-size> font-size" data-dfn-type="value" data-export id="valdef-relative-size-font-size-smaller">smaller<a class="self-link" href="#valdef-relative-size-font-size-smaller"></a></dfn>
</pre>
     <p>For example, if the parent element has a font size of <a class="css" data-link-type="maybe" href="#valdef-font-size-absolute-size-medium" id="ref-for-valdef-font-size-absolute-size-medium">medium</a>, a value of <a class="css" data-link-type="maybe" href="#valdef-relative-size-font-size-larger" id="ref-for-valdef-relative-size-font-size-larger">larger</a> will make the font size of the
	current element be <a class="css" data-link-type="maybe" href="#valdef-font-size-absolute-size-large" id="ref-for-valdef-font-size-absolute-size-large">large</a>.  If the parent element’s size is not
	close to a table entry, the user agent is free to interpolate
	between table entries or round off to the closest one. The user
	agent may have to extrapolate table values if the numerical value
	goes beyond the keywords.</p>
    <dt><dfn class="css" data-dfn-for="font-size" data-dfn-type="value" data-export id="valdef-font-size-length-percentage"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage" id="ref-for-typedef-length-percentage①">&lt;length-percentage></a><a class="self-link" href="#valdef-font-size-length-percentage"></a></dfn> 
    <dd>
     A length value specifies an absolute font size
			(independent of the user agent’s font table).
			Negative lengths are illegal. 
     <p>A percentage value specifies an absolute font size relative
			to the parent element’s font size. Use of percentage values, or
	    values in <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-values-4/#em" id="ref-for-em">em</a>s, leads to more robust and cascadable style sheets.</p>
   </dl>
   <p>The following table provides user agent guidelines for the
absolute-size scaling factor and their mapping to HTML heading and
absolute font-sizes. The <a class="css" data-link-type="maybe" href="#valdef-font-size-absolute-size-medium" id="ref-for-valdef-font-size-absolute-size-medium①">medium</a> value is used as the reference
middle value. The user agent may fine-tune these values for different
fonts or different types of display devices.</p>
   <table class="data">
    <thead>
     <tr>
      <th scope="row"><a class="production css" data-link-type="type" href="#typedef-font-size-absolute-size" id="ref-for-typedef-font-size-absolute-size②">&lt;absolute-size></a> 
      <th scope="col"><dfn class="css" data-dfn-for="font-size <absolute-size>" data-dfn-type="value" data-export id="valdef-font-size-absolute-size-xx-small">xx-small<a class="self-link" href="#valdef-font-size-absolute-size-xx-small"></a></dfn> 
      <th scope="col"><dfn class="css" data-dfn-for="font-size <absolute-size>" data-dfn-type="value" data-export id="valdef-font-size-absolute-size-x-small">x-small<a class="self-link" href="#valdef-font-size-absolute-size-x-small"></a></dfn> 
      <th scope="col"><dfn class="css" data-dfn-for="font-size <absolute-size>" data-dfn-type="value" data-export id="valdef-font-size-absolute-size-small">small<a class="self-link" href="#valdef-font-size-absolute-size-small"></a></dfn> 
      <th scope="col"><dfn class="dfn-paneled css" data-dfn-for="font-size <absolute-size>" data-dfn-type="value" data-export id="valdef-font-size-absolute-size-medium">medium</dfn> 
      <th scope="col"><dfn class="dfn-paneled css" data-dfn-for="font-size <absolute-size>" data-dfn-type="value" data-export id="valdef-font-size-absolute-size-large">large</dfn> 
      <th scope="col"><dfn class="css" data-dfn-for="font-size <absolute-size>" data-dfn-type="value" data-export id="valdef-font-size-absolute-size-x-large">x-large<a class="self-link" href="#valdef-font-size-absolute-size-x-large"></a></dfn> 
      <th scope="col"><dfn class="css" data-dfn-for="font-size <absolute-size>" data-dfn-type="value" data-export id="valdef-font-size-absolute-size-xx-large">xx-large<a class="self-link" href="#valdef-font-size-absolute-size-xx-large"></a></dfn> 
      <th scope="col">
    <tbody>
     <tr>
      <th scope="row">scaling factor 
      <td>3/5 
      <td>3/4 
      <td>8/9 
      <td>1 
      <td>6/5 
      <td>3/2 
      <td>2/1 
      <td>3/1 
     <tr>
      <th scope="row">HTML headings 
      <td>h6 
      <td>
      <td>h5 
      <td>h4 
      <td>h3 
      <td>h2 
      <td>h1 
      <td>
     <tr>
      <th scope="row">HTML font sizes 
      <td>1 
      <td>
      <td>2 
      <td>3 
      <td>4 
      <td>5 
      <td>6 
      <td>7 
   </table>
   <p class="note" role="note"><span>Note:</span> To preserve readability, an UA applying
these guidelines should nevertheless avoid creating font-size resulting
in less than 9 device pixels per EM unit on a computer display.</p>
   <p class="note" role="note"><span>Note:</span> In CSS1, the suggested
scaling factor between adjacent indexes was 1.5 which user experience
proved to be too large. In CSS2, the suggested scaling factor for computer
screen between adjacent indexes was 1.2 which still created issues for the small
sizes. The new scaling factor varies between each index to provide a better
readability.</p>
   <p>The actual value of this property may differ from the computed
value due a numerical value on <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust">font-size-adjust</a> and the
unavailability of certain font sizes.</p>
   <p>Child elements inherit the computed <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size②">font-size</a> value (otherwise, the
effect of <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①">font-size-adjust</a> would compound).</p>
   <div class="example" id="example-2fb359ce">
    <a class="self-link" href="#example-2fb359ce"></a> Examples: 
<pre>p { font-size: 12pt; }blockquote { font-size: larger }
em { font-size: 150% }
em { font-size: 1.5em }
</pre>
   </div>
   <h3 class="heading settled" data-level="3.6" id="font-size-adjust-prop"><span class="secno">3.6. </span><span class="content">Relative sizing: the <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust②">font-size-adjust</a> property</span><a class="self-link" href="#font-size-adjust-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-size-adjust">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-size-adjust">font-size-adjust</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑥">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value" id="ref-for-number-value">&lt;number></a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>none
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animatable:</a>
      <td>as number
   </table>
   <p>For any given font size, the apparent size and legibility of text
varies across fonts. For scripts such as Latin or Cyrillic that
distinguish between upper and lowercase letters, the relative height
of lowercase letters compared to their uppercase counterparts is a
determining factor of legibility. This is commonly referred to as the <dfn class="dfn-paneled" data-dfn-type="dfn" data-local-lt="aspect value" data-lt="font aspect value" data-noexport id="font-aspect-value">aspect value</dfn>.
Precisely defined, it is equal to the x-height of a font divided by
the font size.</p>
   <p>In situations where font fallback occurs, fallback fonts may not
share the same aspect value as the desired font family and will thus
appear less readable.  The <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust③">font-size-adjust</a> property is a way to
preserve the readability of text when font fallback occurs.  It does
this by adjusting the font-size so that the x-height is the same
regardless of the font used.</p>
   <div class="example" id="example-b7b43abf">
    <a class="self-link" href="#example-b7b43abf"></a> The style defined below defines Verdana as the desired font family, but if Verdana is not available Futura or Times
	will be used. 
<pre>p {
  font-family: Verdana, Futura, Times;
}

&lt;p>Lorem ipsum dolor sit amet, ...&lt;/p>
</pre>
    <p>Verdana has a relatively high aspect value, lowercase letters are relatively tall compared to uppercase
	letters, so at small sizes text appears legible.  Times has a lower aspect value and so if fallback occurs,
	the text will be less legible at small sizes than Verdana.</p>
   </div>
   <p>How text rendered in each of these fonts compares is shown below, the columns show text rendered in Verdana, Futura and Times.
The same font-size value is used across cells
within each row and red lines are included to show the differences in x-height.  In the upper half each row is rendered in the same font-size value.  The same is true
for the lower half but in this half the <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust④">font-size-adjust</a> property is also set so that the actual font size is adjusted
to preserve the x-height across each row.  Note how small text remains relatively legible across each row in the lower half.</p>
   <div class="figure">
    <img alt="text with and without &apos;font-size-adjust&apos;" src="fontsizeadjust.png">
    <p class="caption">Text with and without the use of <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust⑤">font-size-adjust</a></p>
   </div>
   <p>This property allows authors to specify an <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value">aspect value</a> for an element that
will effectively preserve the x-height of the first choice font, whether it is substituted
or not. Values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-size-adjust" data-dfn-type="value" data-export id="valdef-font-size-adjust-none">none<a class="self-link" href="#valdef-font-size-adjust-none"></a></dfn> 
    <dd>Do not preserve the font’s x-height. 
    <dt><dfn class="css" data-dfn-for="font-size-adjust" data-dfn-type="value" data-export id="valdef-font-size-adjust-number"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#number-value" id="ref-for-number-value①">&lt;number></a><a class="self-link" href="#valdef-font-size-adjust-number"></a></dfn> 
    <dd>
      Specifies the <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value①">aspect value</a> used in the calculation below to calculate the adjusted font size: 
<pre>c  =  ( a / a' ) s </pre>
     <p>where:</p>
<pre>s  =  font-size value
a  =  <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value②">aspect value</a> as specified by the 'font-size-adjust' property
a' =  <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value③">aspect value</a> of actual font
c  =  adjusted font-size to use
</pre>
     <p>
      This value applies to any font that is selected but in typical usage it should be based
		on the <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value④">aspect value</a> of the first font in the font-family list.  If this is specified accurately,
		the 
      <tt>(a/a')</tt>
       term in the formula above is effectively 1 for the first font and no adjustment occurs.
		If the value is specified inaccurately, text rendered using the first font in the family
		list will display differently in older user agents that don’t support <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust⑥">font-size-adjust</a>.
     </p>
   </dl>
   <p>The value of <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust⑦">font-size-adjust</a> affects the used value of <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size③">font-size</a> but
does not affect the computed value.  It affects the size of relative units
that are based on font metrics of the <a data-link-type="dfn" href="#first-available-font" id="ref-for-first-available-font">first available font</a> such
as <code>ex</code> and <code>ch</code> but does not affect the size of <code>em</code> units.  Since numeric values of <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height">line-height</a> refer to the computed size of <span class="property" id="ref-for-propdef-font-size④">font-size</span>, <span class="property" id="ref-for-propdef-font-size-adjust⑧">font-size-adjust</span> does not affect the used value of <span class="property" id="ref-for-propdef-line-height①">line-height</span>.</p>
   <p class="note" role="note"><span>Note:</span> In CSS, authors often specify <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height②">line-height</a> as a multiple of the <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size⑤">font-size</a>.  Since the <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust⑨">font-size-adjust</a> property affects the used value of <span class="property" id="ref-for-propdef-font-size⑥">font-size</span>, authors should take
care setting the line height when <span class="property" id="ref-for-propdef-font-size-adjust①⓪">font-size-adjust</span> is used. Setting
the line height too tightly can result in overlapping lines of text
in this situation.</p>
   <p>Authors can calculate the <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value⑤">aspect value</a> for a given font by comparing spans with the same content but
different <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①①">font-size-adjust</a> properties.  If the same font-size is used, the spans will match when the <span class="property" id="ref-for-propdef-font-size-adjust①②">font-size-adjust</span> value is accurate for the given font.</p>
   <div class="example" id="example-9273e0b1">
    <a class="self-link" href="#example-9273e0b1"></a> Two spans with borders are used to determine the <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value⑥">aspect value</a> of a font.  The <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size⑦">font-size</a> is the same for both spans but the <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①③">font-size-adjust</a> property is specified only for the right span.  Starting with a value of 0.5, the aspect
	 value can be adjusted until the borders around the two letters line up. 
<pre>p {
  font-family: Futura;
  font-size: 500px;
}

span {
  border: solid 1px red;
}

.adjust {
  font-size-adjust: 0.5;
}

&lt;p>&lt;span>b&lt;/span>&lt;span class="adjust">b&lt;/span>&lt;/p>
</pre>
    <div class="figure">
     <img alt="Futura with an aspect value of 0.5" src="beforefontsizeadjust.png">
     <p class="caption">Futura with an <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value⑦">aspect value</a> of 0.5</p>
    </div>
    <p>The box on the right is a bit bigger than the one on the left, so the <a data-link-type="dfn" href="#font-aspect-value" id="ref-for-font-aspect-value⑧">aspect value</a> of this font is something less than 0.5.
	Adjust the value until the boxes align.</p>
   </div>
   <h3 class="heading settled" data-level="3.7" id="font-prop"><span class="secno">3.7. </span><span class="content">Shorthand font property: the <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font">font</a> property</span><a class="self-link" href="#font-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font">font</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">[ [ <a class="production" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style②">&lt;'font-style'></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any">||</a> <a class="production css" data-link-type="type" href="#typedef-font-variant-css21" id="ref-for-typedef-font-variant-css21">&lt;font-variant-css21></a> <span id="ref-for-comb-any①">||</span> <a class="production" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight③">&lt;'font-weight'></a> <span id="ref-for-comb-any②">||</span> <a class="production" data-link-type="propdesc" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch②">&lt;'font-stretch'></a> ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt">?</a> <a class="production" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size⑧">&lt;'font-size'></a> [ / <a class="production" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height③">&lt;'line-height'></a> ]<span id="ref-for-mult-opt①">?</span> <a class="production" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family①">&lt;'font-family'></a> ] <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one③⑦">|</a> caption <span id="ref-for-comb-one③⑧">|</span> icon <span id="ref-for-comb-one③⑨">|</span> menu <span id="ref-for-comb-one④⓪">|</span> message-box <span id="ref-for-comb-one④①">|</span> small-caption <span id="ref-for-comb-one④②">|</span> status-bar
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>see individual properties
     <tr>
      <th>Applies to:
      <td>see individual properties
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>see individual properties
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>see individual properties
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>see individual properties
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>see individual properties
     <tr>
      <th>Canonical order:
      <td>per grammar
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font①">font</a> property is, except as
described below, a shorthand property for setting <a class="property" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style③">font-style</a>, <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant">font-variant</a>, <a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight④">font-weight</a>, <a class="property" data-link-type="propdesc" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch③">font-stretch</a>, <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size⑨">font-size</a>, <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height④">line-height</a>,
and <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family②">font-family</a> at the same place in the stylesheet.
Values for the <span class="property" id="ref-for-descdef-font-face-font-variant①">font-variant</span> property may also be included, but only those supported in CSS 2.1; none
of the <span class="property" id="ref-for-descdef-font-face-font-variant②">font-variant</span> values added in this specification can be used in
the <span class="property" id="ref-for-propdef-font②">font</span> shorthand:</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-font-variant-css21">&lt;font-variant-css21></dfn> = [ <dfn data-dfn-for="<font-variant-css21> font" data-dfn-type="value" data-export id="valdef-font-variant-css21-font-normal">normal<a class="self-link" href="#valdef-font-variant-css21-font-normal"></a></dfn> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④③">|</a> <dfn class="dfn-paneled" data-dfn-for="<font-variant-css21> font" data-dfn-type="value" data-export id="valdef-font-variant-css21-font-small-caps">small-caps</dfn> ]</pre>
   <p>Additionally, it is a shorthand for <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①④">font-size-adjust</a>, <a class="property" data-link-type="propdesc" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning">font-kerning</a>,
and <a class="property" data-link-type="propdesc" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override①">font-language-override</a>,
but as these cannot be specified in the syntax,
it merely resets these to their initial values.</p>
   <p>The syntax of this property is based on a traditional typographical
shorthand notation to set multiple properties related to fonts.</p>
   <div class="example" id="example-ba41c74f">
    <a class="self-link" href="#example-ba41c74f"></a> Examples: 
<pre>p { font: 12pt/14pt sans-serif }
p { font: 80% sans-serif }
p { font: x-large/110% "new century schoolbook", serif }
p { font: bold italic large Palatino, serif }
p { font: normal small-caps 120%/120% fantasy }
p { font: condensed oblique 12pt "Helvetica Neue", serif; }
</pre>
    <p>In the second rule, the font size percentage value (<span class="css">80%</span>) refers
	to the computed <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①⓪">font-size</a> of the parent element. In the third rule, the line
	height percentage (<span class="css">110%</span>) refers to the font size of the element
	itself.</p>
    <p>The first three rules do not specify the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant③">font-variant</a> and <a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight⑤">font-weight</a> explicitly, so these properties
	receive their initial values (<a class="css" data-link-type="maybe" href="#valdef-font-variant-normal" id="ref-for-valdef-font-variant-normal">normal</a>). Notice that the font family
	name "new century schoolbook", which contains spaces, is enclosed in
	quotes. The fourth rule sets the <span class="property" id="ref-for-propdef-font-weight⑥">font-weight</span> to <a class="css" data-link-type="maybe" href="#valdef-font-weight-bold" id="ref-for-valdef-font-weight-bold">bold</a>, the <a class="property" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style④">font-style</a> to <a class="css" data-link-type="maybe" href="#valdef-font-style-italic" id="ref-for-valdef-font-style-italic">italic</a>, and implicitly sets <span class="property" id="ref-for-descdef-font-face-font-variant④">font-variant</span> to <span class="css" id="ref-for-valdef-font-variant-normal①">normal</span>.</p>
    <p>The fifth rule sets the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant⑤">font-variant</a> (<a class="css" data-link-type="maybe" href="#valdef-font-variant-css21-font-small-caps" id="ref-for-valdef-font-variant-css21-font-small-caps">small-caps</a>),
	the <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①①">font-size</a> (120% of the parent’s font size),
	the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height⑤">line-height</a> (120% of the font size)
	and the <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family③">font-family</a> (<a class="css" data-link-type="maybe" href="#valdef-generic-family-fantasy" id="ref-for-valdef-generic-family-fantasy②">fantasy</a>).
	It follows that the keyword <a class="css" data-link-type="maybe" href="#valdef-font-style-normal" id="ref-for-valdef-font-style-normal">normal</a> applies to the two
	remaining properties: <a class="property" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style⑤">font-style</a> and <a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight⑦">font-weight</a>.</p>
    <p>The sixth rule sets the <a class="property" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style⑥">font-style</a>, <a class="property" data-link-type="propdesc" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch④">font-stretch</a>, <a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①②">font-size</a>, and <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family④">font-family</a>,
	the other font properties being set to their initial values.</p>
   </div>
   <p><strong class="advisement"> Since the <a class="property" data-link-type="propdesc" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch⑤">font-stretch</a> property was not defined in CSS 2.1, when using <span class="property" id="ref-for-propdef-font-stretch⑥">font-stretch</span> values within <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font③">font</a> rules, authors should include an extra version compatible with
older user agents:</strong></p>
<pre class="example" id="example-50b75e4d"><a class="self-link" href="#example-50b75e4d"></a>p {
  font: 80% sans-serif;   /* for older user agents */
  font: condensed 80% sans-serif;
}
</pre>
   <p>The following values refer to system fonts:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-caption">caption</dfn> 
    <dd>The font used for captioned controls (e.g., buttons, drop-downs, etc.). 
    <dt><dfn class="css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-icon">icon<a class="self-link" href="#valdef-font-icon"></a></dfn> 
    <dd>The font used to label icons. 
    <dt><dfn class="css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-menu">menu<a class="self-link" href="#valdef-font-menu"></a></dfn> 
    <dd>The font used in menus (e.g., dropdown menus and menu lists). 
    <dt><dfn class="css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-message-box">message-box<a class="self-link" href="#valdef-font-message-box"></a></dfn> 
    <dd>The font used in dialog boxes. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-small-caption">small-caption</dfn> 
    <dd>The font used for labeling small controls. 
    <dt><dfn class="css" data-dfn-for="font" data-dfn-type="value" data-export id="valdef-font-status-bar">status-bar<a class="self-link" href="#valdef-font-status-bar"></a></dfn> 
    <dd>The font used in window status bars. 
   </dl>
   <p>System fonts may only be set as a whole; that is, the font
family, size, weight, style, etc. are all set at the same time.
These values may then be altered individually if desired.  If no
font with the indicated characteristics exists on a given platform,
the user agent should either intelligently substitute (e.g., a smaller
version of the <a class="css" data-link-type="maybe" href="#valdef-font-caption" id="ref-for-valdef-font-caption">caption</a> font might be used for the <a class="css" data-link-type="maybe" href="#valdef-font-small-caption" id="ref-for-valdef-font-small-caption">small-caption</a> font), or substitute a user agent default font. As for regular fonts,
if, for a system font, any of the individual properties are not part
of the operating system’s available user preferences, those properties
should be set to their initial values.</p>
   <p>That is why this property is "almost" a shorthand property: system
fonts can only be specified with this property, not with <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family⑤">font-family</a> itself, so <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font④">font</a> allows authors to do more than the
sum of its subproperties. However, the individual properties such as <a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight⑧">font-weight</a> are still given values
taken from the system font, which can be independently varied.</p>
   <p>Note that the keywords used for the system fonts listed above are
only treated as keywords when they occur in the initial position, in
other positions the same string is treated as part of the font family
name:</p>
<pre>font: menu;        /* use the font settings for system menus */
font: large menu;  /* use a font family named "menu" */
</pre>
   <div class="example" id="example-de005a03">
    <a class="self-link" href="#example-de005a03"></a> Examples: 
<pre>button { font: 300 italic 1.3em/1.7em "FB Armada", sans-serif }
button p { font: menu }
button p em { font-weight: bolder }
</pre>
    <p>If the font used for dropdown menus on a particular system
	happened to be, for example, 9-point Charcoal, with a weight of 600, then P
	elements that were descendants of BUTTON would be displayed as if
	this rule were in effect:</p>
<pre>button p { font: 600 9pt Charcoal } </pre>
    <p>Because the <a class="property" data-link-type="propdesc" href="#propdef-font" id="ref-for-propdef-font⑤">font</a> shorthand resets to its initial value
	any property not explicitly given a value, this has the same effect as
	this declaration:</p>
<pre>button p {
  font-style: normal;
  font-variant: normal;
  font-weight: 600;
  font-size: 9pt;
  line-height: normal;
  font-family: Charcoal
}
</pre>
   </div>
   <h3 class="heading settled" data-level="3.8" id="font-synthesis-prop"><span class="secno">3.8. </span><span class="content">Controlling synthetic faces: the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis②">font-synthesis</a> property</span><a class="self-link" href="#font-synthesis-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-synthesis">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-synthesis">font-synthesis</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">none <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④④">|</a> [ weight <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any③">||</a> style ]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>weight style
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animatable:</a>
      <td>no
   </table>
   <p>This property controls whether user agents are allowed to synthesize bold or oblique font
faces when a font family lacks bold or italic faces.</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-synthesis" data-dfn-type="value" data-export id="valdef-font-synthesis-weight">weight<a class="self-link" href="#valdef-font-synthesis-weight"></a></dfn> 
    <dd>
      If a <a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight⑨">font-weight</a> is requested that the font family does not contain,
		the user agent may synthesize the requested weight from the weights that do exist in the font family. 
     <p>If this is not specified, the user agent must <em>not</em> synthesize missing weights.</p>
    <dt><dfn class="css" data-dfn-for="font-synthesis" data-dfn-type="value" data-export id="valdef-font-synthesis-style">style<a class="self-link" href="#valdef-font-synthesis-style"></a></dfn> 
    <dd>
      If a <a class="property" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style⑦">font-style</a> is requested that the font family does not contain,
		the user agent may synthesize the requested style from the <a class="css" data-link-type="maybe" href="#valdef-font-style-normal" id="ref-for-valdef-font-style-normal①">normal</a> face in the font family. 
     <p>If this is not specified, the user agent must <em>not</em> synthesize missing styles.</p>
    <dt><dfn class="css" data-dfn-for="font-synthesis" data-dfn-type="value" data-export id="valdef-font-synthesis-none">none<a class="self-link" href="#valdef-font-synthesis-none"></a></dfn> 
    <dd> The user agent must not synthesize any missing faces. 
   </dl>
   <p class="note" role="note"><span>Note:</span> When a face is missing (and not synthesized),
font fallback occurs.</p>
   <div class="example" id="example-074790a7">
    <a class="self-link" href="#example-074790a7"></a> The style rule below disables the use of synthetically obliqued Arabic: 
<pre>*:lang(ar) { font-synthesis: none; }</pre>
   </div>
   <h2 class="heading settled" data-level="4" id="font-resources"><span class="secno">4. </span><span class="content">Font Resources</span><a class="self-link" href="#font-resources"></a></h2>
   <h3 class="heading settled" data-level="4.1" id="font-face-rule"><span class="secno">4.1. </span><span class="content">The <dfn class="dfn-paneled css" data-dfn-type="at-rule" data-export id="at-ruledef-font-face">@font-face</dfn> rule</span><a class="self-link" href="#font-face-rule"></a></h3>
   <p>The <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face">@font-face</a> rule allows for linking to fonts that are
automatically fetched and activated when needed.  This allows authors to select
a font that closely matches the design goals for a given page
rather than limiting the font choice to a set of fonts available
on a given platform.  A set of font descriptors define the location of a font
resource, either locally or externally, along with the style characteristics of
an individual face.  Multiple <span class="css" id="ref-for-at-ruledef-font-face①">@font-face</span> rules can be used to construct
font families with a variety of faces.  Using CSS font matching rules, a
user agent can selectively download only those faces that are needed for
a given piece of text.</p>
   <p>The <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②">@font-face</a> rule consists of the <span class="css" id="ref-for-at-ruledef-font-face③">@font-face</span> at-keyword followed
by a block of descriptor declarations. In terms of the grammar, this
specification defines the following productions:</p>
<pre><dfn data-dfn-type="dfn" data-noexport id="font_face_rule">font_face_rule<a class="self-link" href="#font_face_rule"></a></dfn>
  : <a data-link-type="dfn" href="#font_face_sym" id="ref-for-font_face_sym">FONT_FACE_SYM</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a>* '{' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a>* <a data-link-type="dfn" href="#descriptor_declaration" id="ref-for-descriptor_declaration">descriptor_declaration</a>? [ ';' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a>* <a data-link-type="dfn" href="#descriptor_declaration" id="ref-for-descriptor_declaration①">descriptor_declaration</a>? ]* '}' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a>*
  ;

<dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="descriptor_declaration">descriptor_declaration</dfn>
  : <a href="https://www.w3.org/TR/CSS21/grammar.html#grammar">property</a> ':' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner">S</a>* <a href="https://www.w3.org/TR/CSS21/grammar.html#grammar">expr</a>
  ;
</pre>
   <p>The following new definitions are introduced:</p>
<pre>-    -|\\0{0,4}2d(\r\n|[ \t\r\n\f])?
F    f|\\0{0,4}(46|66)(\r\n|[ \t\r\n\f])?</pre>
   <p>The following new token is introduced:</p>
<pre>@{F}{O}{N}{T}{-}{F}{A}{C}{E} {return <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="font_face_sym">FONT_FACE_SYM</dfn>;}</pre>
   <p>Each <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face④">@font-face</a> rule specifies a value for every font descriptor, either implicitly or
explicitly. Those not given explicit values in the rule take the initial
value listed with each descriptor in this specification. These
descriptors apply solely within the context of the <span class="css" id="ref-for-at-ruledef-font-face⑤">@font-face</span> rule in
which they are defined, and do not apply to document language elements.
There is no notion of which elements the descriptors apply to or whether
the values are inherited by child elements.  When a given descriptor occurs
multiple times in a given <span class="css" id="ref-for-at-ruledef-font-face⑥">@font-face</span> rule, only the last
descriptor declaration is used and all prior declarations for that
descriptor are ignored.</p>
   <div class="example" id="example-ff60a5cd">
    <a class="self-link" href="#example-ff60a5cd"></a> To use a downloadable font called Gentium: 
<pre>@font-face {
  font-family: Gentium;
  src: url(http://example.com/fonts/Gentium.woff);
}

p { font-family: Gentium, serif; }
</pre>
    <p>The user agent will download Gentium and use it when rendering text
	within paragraph elements.  If for some reason the site serving the font
	is unavailable, the default serif font will be used.</p>
   </div>
   <p>A given set of <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face⑦">@font-face</a> rules define a set of fonts
available for use within the documents that contain these rules.
When font matching is done, fonts defined using these rules
are considered before other available fonts on a system.</p>
   <p>Downloaded fonts are only available to documents that reference them.
The process of activating these fonts must not make them available to
other applications or to documents that don’t directly link to the same
font. User agent implementers might consider it convenient to use
downloaded fonts when rendering characters in other documents for which no
other available font exists as part of the <em>system font fallback</em> procedure.
However, this would cause a security leak since the contents of one page would be
able to affect other pages, something an attacker could use as an attack
vector.  These restrictions do not affect caching behavior, fonts are
cached the same way other web resources are cached.</p>
   <p>This at-rule follows the forward-compatible parsing rules of CSS.
Like properties in a declaration block, declarations of any
descriptors that are not supported by the user agent must be ignored. <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face⑧">@font-face</a> rules require a font-family and src
descriptor; if either of these are missing, the <span class="css" id="ref-for-at-ruledef-font-face⑨">@font-face</span> rule is invalid and must be ignored
entirely.</p>
   <p>In cases where user agents have limited platform resources or implement
the ability to disable downloadable font resources, <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①⓪">@font-face</a> rules must
simply be ignored; the behavior of individual descriptors as defined in this
specification should not be altered.</p>
   <h3 class="heading settled" data-level="4.2" id="font-family-desc"><span class="secno">4.2. </span><span class="content">Font family: the <span class="css">font-family</span> descriptor</span><a class="self-link" href="#font-family-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-family">font-family<a class="self-link" href="#descdef-font-face-font-family"></a></dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①①">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-4/#family-name-value" id="ref-for-family-name-value②">&lt;family-name></a>
     <tr>
      <th>Initial:
      <td>n/a (required)
   </table>
   <p>This descriptor defines the font family name that will be used in
all CSS font family name matching.  It is required for the <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①②">@font-face</a> rule to be valid. It overrides the font family names contained in the
underlying font data. If the font family name is the same as a font
family available in a given user’s environment, it effectively hides
the underlying font for documents that use the stylesheet.  This
permits a web author to freely choose font-family names without
worrying about conflicts with font family names present in a given
user’s environment. Likewise, platform substitutions for a given font
family name must not be used.</p>
   <h3 class="heading settled" data-level="4.3" id="src-desc"><span class="secno">4.3. </span><span class="content">Font reference: the <span class="css">src</span> descriptor</span><a class="self-link" href="#src-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-src">src</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①③">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">[ <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#url-value" id="ref-for-url-value">&lt;url></a> format(<a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value">&lt;string></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma①">#</a>)<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt②">?</a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑤">|</a> local(<a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-4/#family-name-value" id="ref-for-family-name-value③">&lt;family-name></a>) ]<span id="ref-for-mult-comma②">#</span>
     <tr>
      <th>Initial:
      <td>n/a (required)
   </table>
   <p>This descriptor specifies the resource containing font data. It is
required for the <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①④">@font-face</a> rule to be valid. Its value
is a  prioritized, comma-separated list of external references or
locally-installed font face names. When a font is needed the user
agent iterates over the set of references listed, using the first one
it can successfully activate. Fonts containing invalid data or local
font faces that are not found are ignored and the user agent loads the
next font in the list.</p>
   <p>As with other URLs in CSS, the URL may be relative, in which case it
is resolved relative to the location of the style sheet containing the <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①⑤">@font-face</a> rule. In
the case of SVG fonts, the URL points to an element within a document
containing SVG font definitions.  If the element reference is omitted,
a reference to the first defined font is implied.  Similarly, font
container formats that can contain more than one font must load one
and only one of the fonts for a given <span class="css" id="ref-for-at-ruledef-font-face①⑥">@font-face</span> rule. Fragment
identifiers are used to indicate which font to load.  If a container
format lacks a defined fragment identifier scheme, implementations
should use a simple 1-based indexing scheme (e.g. "font-collection#1"
for the first font, "font-collection#2" for the second font).</p>
<pre>src: url(fonts/simple.woff);   /* load simple.woff relative to stylesheet location */
src: url(/fonts/simple.woff);  /* load simple.woff from absolute location */
src: url(fonts.svg#simple);    /* load SVG font with id "simple" */
</pre>
   <p>External references consist of a URL, followed by an optional hint
describing the format of the font resource referenced by that URL. The
format hint contains a comma-separated list of format strings that
denote well-known font formats. Conformant user agents must skip
downloading a font resource if the format hints indicate only
unsupported or unknown font formats.  If no format hints are supplied,
the user agent should download the font resource.</p>
<pre>/* load WOFF font if possible, otherwise use OpenType font */
@font-face {
  font-family: bodytext;
  src: url(ideal-sans-serif.woff) format("woff"),
       url(basic-sans-serif.ttf) format("opentype");
}
</pre>
   <p>Format strings defined by this specification:</p>
   <table class="data" id="fontformats">
    <thead>
     <tr>
      <th>String 
      <th>Font Format 
      <th>Common extensions 
    <tbody>
     <tr>
      <th>"woff" 
      <td><a href="https://www.w3.org/TR/WOFF/">WOFF (Web Open Font Format)</a> 
      <td>.woff 
     <tr>
      <th>"truetype" 
      <td><a href="http://www.microsoft.com/typography/otspec/default.htm">TrueType</a> 
      <td>.ttf 
     <tr>
      <th>"opentype" 
      <td><a href="http://www.microsoft.com/typography/otspec/default.htm">OpenType</a> 
      <td>.ttf, .otf 
     <tr>
      <th>"embedded-opentype" 
      <td><a href="http://www.w3.org/Submission/2008/SUBM-EOT-20080305/">Embedded OpenType</a> 
      <td>.eot 
     <tr>
      <th>"svg" 
      <td><a href="https://www.w3.org/TR/SVG/fonts.html">SVG Font</a> 
      <td>.svg, .svgz 
   </table>
   <p>Given the overlap in common usage between TrueType and OpenType, the
format hints "truetype" and "opentype" must be considered as synonymous;
a format hint of "opentype" does not imply that the font contains
Postscript CFF style glyph data or that it contains OpenType layout
information (see <a href="#platform-props-to-css">Appendix A</a> for more background on this).</p>
   <p>When authors would prefer to use a locally available
copy of a given font and download it if it’s not, <dfn class="dfn-paneled css" data-dfn-for="@font-face/src" data-dfn-type="function" data-export id="funcdef-font-face-src-local" type="function">local()</dfn> can be used. The locally-installed <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-fonts-4/#family-name-value" id="ref-for-family-name-value④">&lt;family-name></a> argument to <a class="css" data-link-type="maybe" href="#funcdef-font-face-src-local" id="ref-for-funcdef-font-face-src-local">local()</a> is a format-specific string that
uniquely identifies a single font face within a larger family.
Like its use in <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family⑥">font-family</a>, <span class="production" id="ref-for-family-name-value⑤">&lt;family-name></span> can be a quoted string,
or a series of unquoted identifiers which are converted to a face name
by concatenating them separated by a space.</p>
<pre>/* regular face of Gentium */
@font-face {
  font-family: MyGentium;
  src: local(Gentium),    /* use locally available Gentium */
       url(Gentium.woff); /* otherwise, download it */
}
</pre>
   <p>For OpenType and TrueType fonts, this string is used to match only
the Postscript name or the full font name in the name table of locally
available fonts. Which type of name is used varies by platform and
font, so authors should include both of these names to assure proper
matching across platforms. Platform substitutions for a given font
name must not be used.</p>
<pre>/* bold face of Gentium */
@font-face {
  font-family: MyGentium;
  src: local(Gentium Bold),    /* full font name */
       local(Gentium-Bold),    /* Postscript name */
       url(GentiumBold.woff);  /* otherwise, download it */
  font-weight: bold;
}
</pre>
   <p>Just as a <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①⑦">@font-face</a> rule specifies the characteristics of a single font
within a family, the unique name used with <a class="css" data-link-type="maybe" href="#funcdef-font-face-src-local" id="ref-for-funcdef-font-face-src-local①">local()</a> specifies a single
font, not an entire font family. Defined in terms of
OpenType font data, the Postscript name is found in the font’s <a href="http://www.microsoft.com/typography/otspec/name.htm">name table</a>,
in the name record with nameID = 6 (see <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> for more details).  The Postscript name is the commonly
used key for all fonts on OSX and for Postscript CFF fonts under
Windows. The full font name (nameID = 4) is used as a unique key for
fonts with TrueType glyphs on Windows.</p>
   <p>For OpenType fonts with multiple localizations of the full font name, the US
English version is used (language ID = 0x409 for Windows and language ID = 0 for Macintosh)
or the first localization
when a US English full font name is not available (the OpenType
specification recommends that <a href="http://www.microsoft.com/typography/otspec/recom.htm">all fonts
minimally include US English names</a>). User agents that also match
other full font names, e.g. matching the Dutch name when the current
system locale is set to Dutch, are considered non-conformant. This is
done not to prefer English but to avoid matching inconsistencies across
font versions and OS localizations, since font style names (e.g. "Bold")
are frequently localized into many languages and the set of
localizations available varies widely across platform and font version.
User agents that match a concatenation of family name (nameID = 1) with
style name (nameID = 2) are considered non-conformant.</p>
   <p>This also allows for referencing faces that belong to larger
families that cannot otherwise be referenced.</p>
   <div class="example" id="example-be7a8c0c">
    <a class="self-link" href="#example-be7a8c0c"></a> Use a local font or reference an SVG font in another document: 
<pre>@font-face {
  font-family: Headline;
  src: local(Futura-Medium),
       url(fonts.svg#MyGeometricModern) format("svg");
}
</pre>
    <p>Create an alias for local Japanese fonts on different platforms:</p>
<pre>@font-face {
  font-family: jpgothic;
  src: local(HiraKakuPro-W3), local(Meiryo), local(IPAPGothic);
}
</pre>
    <p>Reference a font face that cannot be matched within a larger family:</p>
<pre>@font-face {
  font-family: Hoefler Text Ornaments;
  /* has the same font properties as Hoefler Text Regular */
  src: local(HoeflerText-Ornaments);
}
</pre>
    <p>Since localized fullnames never match, a document with the header
	style rules below would always render using the default serif font, regardless
	whether a particular system locale parameter is set to Finnish or not:</p>
<pre>@font-face {
  font-family: SectionHeader;
  src: local("Arial Lihavoitu");  /* Finnish fullname for Arial Bold, should fail */
  font-weight: bold;
}

h2 { font-family: SectionHeader, serif; }
</pre>
    <p>A conformant user agent would never load the font 'gentium.eot' in the
	example below, since it is included in the first definition of the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src">src</a> descriptor
	which is overridden by the second definition in the same <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①⑧">@font-face</a> rule:</p>
<pre>@font-face {
  font-family: MainText;
  src: url(gentium.eot);                     /* for use with older user agents */
  src: local("Gentium"), url(gentium.woff);  /* Overrides src definition */
}
</pre>
   </div>
   <h3 class="heading settled" data-level="4.4" id="font-prop-desc"><span class="secno">4.4. </span><span class="content"> Font property descriptors: the <span class="css">font-style</span>, <span class="css">font-weight</span>, <span class="css">font-stretch</span> descriptors</span><a class="self-link" href="#font-prop-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-style">font-style<a class="self-link" href="#descdef-font-face-font-style"></a></dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face①⑨">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod"><span><dfn class="css" data-dfn-for="@font-face/font-style" data-dfn-type="value" data-export id="valdef-font-face-font-style-normal">normal<a class="self-link" href="#valdef-font-face-font-style-normal"></a></dfn> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑥">|</a> <dfn class="css" data-dfn-for="@font-face/font-style" data-dfn-type="value" data-export id="valdef-font-face-font-style-italic">italic<a class="self-link" href="#valdef-font-face-font-style-italic"></a></dfn> <span id="ref-for-comb-one④⑦">|</span> <dfn class="css" data-dfn-for="@font-face/font-style" data-dfn-type="value" data-export id="valdef-font-face-font-style-oblique">oblique<a class="self-link" href="#valdef-font-face-font-style-oblique"></a></dfn></span>
     <tr>
      <th>Initial:
      <td>normal
   </table>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-weight">font-weight<a class="self-link" href="#descdef-font-face-font-weight"></a></dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②⓪">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one④⑧">|</a> bold <span id="ref-for-comb-one④⑨">|</span> 100 <span id="ref-for-comb-one⑤⓪">|</span> 200 <span id="ref-for-comb-one⑤①">|</span> 300 <span id="ref-for-comb-one⑤②">|</span> 400 <span id="ref-for-comb-one⑤③">|</span> 500 <span id="ref-for-comb-one⑤④">|</span> 600 <span id="ref-for-comb-one⑤⑤">|</span> 700 <span id="ref-for-comb-one⑤⑥">|</span> 800 <span id="ref-for-comb-one⑤⑦">|</span> 900
     <tr>
      <th>Initial:
      <td>normal
   </table>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-stretch">font-stretch<a class="self-link" href="#descdef-font-face-font-stretch"></a></dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②①">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑤⑧">|</a> ultra-condensed <span id="ref-for-comb-one⑤⑨">|</span> extra-condensed <span id="ref-for-comb-one⑥⓪">|</span> condensed <span id="ref-for-comb-one⑥①">|</span> semi-condensed <span id="ref-for-comb-one⑥②">|</span> semi-expanded <span id="ref-for-comb-one⑥③">|</span> expanded <span id="ref-for-comb-one⑥④">|</span> extra-expanded <span id="ref-for-comb-one⑥⑤">|</span> ultra-expanded
     <tr>
      <th>Initial:
      <td>normal
   </table>
   <p>These descriptors define the characteristics of a font face and are
used in the process of matching styles to specific faces.  For a font
family defined with several <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②②">@font-face</a> rules, user agents can either
download all faces in the family or use these descriptors to selectively
download font faces that match actual styles used in document.  The
values for these descriptors are the same as those for the corresponding
font properties except that relative keywords are not allowed, <a class="css" data-link-type="maybe" href="#valdef-font-weight-bolder" id="ref-for-valdef-font-weight-bolder①">bolder</a> and <a class="css" data-link-type="maybe" href="#valdef-font-weight-lighter" id="ref-for-valdef-font-weight-lighter①">lighter</a>.  If these descriptors are omitted, initial
values are assumed.</p>
   <p>The value for these font face style attributes is used in place of
the style implied by the underlying font data.  This allows authors to
combine faces in flexible combinations, even in situations where the
original font data was arranged differently. User agents that implement
synthetic bolding and obliquing must only apply synthetic styling in
cases where the font descriptors imply this is needed, rather than based
on the style attributes implied by the font data.</p>
   <div class="example" id="example-33e8e677">
    <a class="self-link" href="#example-33e8e677"></a> The font descriptors defined in this section are used for selecting a font
	from within the set of fonts defined by <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②③">@font-face</a> rules for
	a given family. 
    <p>Consider a family containing a single, regular face:</p>
<pre>@font-face {
  font-family: BaskervilleSimple;
  src: url(baskerville-regular.woff);
}
</pre>
    <p>Unstyled text would display using the regular face defined in the <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②④">@font-face</a> rule:</p>
    <div class="figure"><img alt="regular face display" src="fiddlesticks-regular.png" width="373"></div>
    <p>However, italic text would display in most user agents using synthetically
	obliqued glyphs from the regular face, since a separate italic face is not defined:</p>
    <div class="figure"><img alt="synthetic italics display" src="fiddlesticks-synitalics.png" width="373"></div>
    <p>Now consider a family for which an actual italic face is defined:</p>
<pre>@font-face {
  font-family: BaskervilleFull;
  src: url(baskerville-regular.woff);
}

@font-face {
  font-family: BaskervilleFull;
  src: url(baskerville-italic.woff);
  font-style: italic;
}
</pre>
    <p>The second <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②⑤">@font-face</a> rule defines the font resource <code>baskerville-italic.woff</code> to have style attributes of
	normal weight, normal stretch and italic style. When displaying italic
	text, the user agent will use this font, since it’s the closest
	match for italic text. Thus, the text will display using glyphs
	designed by a type designer rather than using synthetically obliqued
	glyphs from the regular face:</p>
    <div class="figure"><img alt="real italics display" src="fiddlesticks-italics.png" width="373"></div>
    <p>See <a href="#font-style-matching">§ 5.2 Matching font styles</a> for more complete details of the process used to select a particular
	face within a font family.</p>
   </div>
   <h3 class="heading settled" data-level="4.5" id="unicode-range-desc"><span class="secno">4.5. </span><span class="content">Character range: the <span class="css">unicode-range</span> descriptor</span><a class="self-link" href="#unicode-range-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-unicode-range">unicode-range</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②⑥">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod"><a class="production css" data-link-type="type">&lt;unicode-range></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma③">#</a>
     <tr>
      <th>Initial:
      <td>U+0-10FFFF
   </table>
   <p>This descriptor defines the set of Unicode codepoints that may be
supported by the font face for which it is declared.  The descriptor
value is a comma-delimited list of Unicode range (<a class="production css" data-link-type="type">&lt;unicode-range></a>)
values. The union of these ranges defines the set of codepoints that
serves as a hint for user agents when deciding whether or not to
download a font resource for a given text run.</p>
   <p>Within the comma-delimited list of Unicode ranges in a <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range">unicode-range</a> descriptor declaration, ranges may overlap. The union
of these ranges defines the set of codepoints for which the
corresponding font may be used. User agents must not download or use
the font for codepoints outside this set.  User agents may normalize
the list of ranges into a list that is different but represents the
same set of codepoints.</p>
   <p>The associated font might not contain glyphs for the entire set of
codepoints defined by the <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range①">unicode-range</a> descriptor.  When the font
is used, the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="effective-character-map">effective character map</dfn> is the intersection of the
codepoints defined by <span class="property" id="ref-for-descdef-font-face-unicode-range②">unicode-range</span> with the font’s <a data-link-type="dfn" href="#character-map" id="ref-for-character-map①">character map</a>.
This allows authors to define supported ranges in terms of broad
ranges without worrying about the precise codepoint ranges supported
by the underlying font.</p>
   <h3 class="heading settled" data-level="4.6" id="composite-fonts"><span class="secno">4.6. </span><span class="content">Using character ranges to define composite fonts</span><a class="self-link" href="#composite-fonts"></a></h3>
   <p>Multiple <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②⑦">@font-face</a> rules with different unicode ranges for the same
family and style descriptor values can be used to create composite fonts
that mix the glyphs from different fonts for different scripts.  This
can be used to combine fonts that only contain glyphs for a single
script (e.g. Latin, Greek, Cyrillic) or it can be used by authors as a
way of segmenting a font into fonts for commonly used characters and
less frequently used characters. Since the user agent will only pull
down the fonts it needs this helps reduce page bandwidth.</p>
   <p>If the unicode ranges overlap for a set of <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②⑧">@font-face</a> rules with the
same family and style descriptor values, the rules are ordered in the
reverse order they were defined; the last rule defined is the first to
be checked for a given character.</p>
   <p>Example ranges for specific languages or characters:</p>
   <dl>
    <dt>unicode-range: U+A5; 
    <dd>a single code point, the yen/yuan symbol 
    <dt>unicode-range: U+0-7F; 
    <dd>code range for basic ASCII characters 
    <dt>unicode-range: U+590-5ff; 
    <dd>code range for Hebrew characters 
    <dt>unicode-range: U+A5, U+4E00-9FFF, U+30??, U+FF00-FF9F; 
    <dd>code range for Japanese kanji, hiragana and katakana characters plus yen/yuan symbol 
   </dl>
   <div class="example" id="example-1c91e57a">
    <a class="self-link" href="#example-1c91e57a"></a> The BBC provides news services in a wide variety of languages, many
	that are not well supported across all platforms. Using an <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face②⑨">@font-face</a> rule, the BBC could provide a font for any of these languages, as it
	already does via a manual font download. 
<pre>@font-face {
  font-family: BBCBengali;
  src: url(fonts/BBCBengali.woff) format("woff");
  unicode-range: U+00-FF, U+980-9FF;
}
</pre>
   </div>
   <div class="example" id="example-3fd9c28a">
    <a class="self-link" href="#example-3fd9c28a"></a> Technical documents often require a wide range of symbols.  The STIX
	Fonts project is one project aimed at providing fonts to support a wide
	range of technical typesetting in a standardized way.  The example below
	shows the use of a font that provides glyphs for many of the
	mathematical and technical symbol ranges within Unicode: 
<pre>@font-face {
  font-family: STIXGeneral;
  src: local(STIXGeneral), url(/stixfonts/STIXGeneral.otf);
  unicode-range: U+000-49F, U+2000-27FF, U+2900-2BFF, U+1D400-1D7FF;
}
</pre>
   </div>
   <div class="example" id="example-7694c528">
    <a class="self-link" href="#example-7694c528"></a> This example shows how an author can override the glyphs used for
	Latin characters in a Japanese font with glyphs from a different font.
	The first rule specifies no range so it defaults to the entire range.
	The range specified in the second rule overlaps but takes precedence
	because it is defined later. 
<pre>@font-face {
  font-family: JapaneseWithGentium;
  src: local(MSMincho);
  /* no range specified, defaults to entire range */
}

@font-face {
  font-family: JapaneseWithGentium;
  src: url(../fonts/Gentium.woff);
  unicode-range: U+0-2FF;
}
</pre>
   </div>
   <div class="example" id="example-cf27d555">
    <a class="self-link" href="#example-cf27d555"></a> Consider a family constructed to optimize bandwidth by separating out
	Latin, Japanese and other characters into different font files: 
<pre>/* fallback font - size: 4.5MB */
@font-face {
  font-family: DroidSans;
  src: url(DroidSansFallback.woff);
  /* no range specified, defaults to entire range */
}

/* Japanese glyphs - size: 1.2MB */
@font-face {
  font-family: DroidSans;
  src: url(DroidSansJapanese.woff);
  unicode-range: U+3000-9FFF, U+ff??;
}

/* Latin, Greek, Cyrillic along with some
   punctuation and symbols - size: 190KB */
@font-face {
  font-family: DroidSans;
  src: url(DroidSans.woff);
  unicode-range: U+000-5FF, U+1e00-1fff, U+2000-2300;
}
</pre>
    <p>For simple Latin text, only the font for Latin characters is downloaded:</p>
<pre>body { font-family: DroidSans; }

&lt;p>This is that&lt;/p>
</pre>
    <p>In this case the user agent first checks the unicode-range for the
	font containing Latin characters (DroidSans.woff).  Since all the
	characters above are in the range U+0-5FF, the user agent downloads the
	font and renders the text with that font.</p>
    <p>Next, consider text that makes use of an arrow character (⇨):</p>
<pre>&lt;p>This &amp;#x21e8; that&lt;p>
</pre>
    <p>The user agent again first checks the unicode-range of the font
	containing Latin characters.  Since U+2000-2300 includes the arrow
	code point (U+21E8), the user agent downloads the font.  For this
	character however the Latin font does not have a matching glyph, so the
	effective unicode-range used for font matching excludes this code point.
	Next, the user agent evaluates the Japanese font.  The unicode-range for
	the Japanese font, U+3000-9FFF and U+ff??, does not include U+21E8, so
	the user agent does not download the Japanese font.
	Next the fallback font is considered.  The <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face③⓪">@font-face</a> rule for the
	fallback font does not define unicode-range so its value defaults to
	the range of all Unicode code points. The fallback font is downloaded and
	used to render the arrow character.</p>
   </div>
   <h3 class="heading settled" data-level="4.7" id="font-rend-desc"><span class="secno">4.7. </span><span class="content">Font features: the <span class="css">font-variant</span> and <span class="css">font-feature-settings</span> descriptors</span><a class="self-link" href="#font-rend-desc"></a></h3>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-variant">font-variant</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face③①">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑥⑥">|</a> none <span id="ref-for-comb-one⑥⑦">|</span> [ <a class="production css" data-link-type="type" href="#typedef-common-lig-values" id="ref-for-typedef-common-lig-values">&lt;common-lig-values></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any④">||</a> <a class="production css" data-link-type="type" href="#typedef-discretionary-lig-values" id="ref-for-typedef-discretionary-lig-values">&lt;discretionary-lig-values></a> <span id="ref-for-comb-any⑤">||</span> <a class="production css" data-link-type="type" href="#typedef-historical-lig-values" id="ref-for-typedef-historical-lig-values">&lt;historical-lig-values></a> <span id="ref-for-comb-any⑥">||</span> <a class="production css" data-link-type="type" href="#typedef-contextual-alt-values" id="ref-for-typedef-contextual-alt-values">&lt;contextual-alt-values></a> <span id="ref-for-comb-any⑦">||</span> stylistic(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name">&lt;feature-value-name></a>) <span id="ref-for-comb-any⑧">||</span> historical-forms <span id="ref-for-comb-any⑨">||</span> styleset(<span class="production" id="ref-for-typedef-feature-value-name①">&lt;feature-value-name></span><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma④">#</a>) <span id="ref-for-comb-any①⓪">||</span> character-variant(<span class="production" id="ref-for-typedef-feature-value-name②">&lt;feature-value-name></span><span id="ref-for-mult-comma⑤">#</span>) <span id="ref-for-comb-any①①">||</span> swash(<span class="production" id="ref-for-typedef-feature-value-name③">&lt;feature-value-name></span>) <span id="ref-for-comb-any①②">||</span> ornaments(<span class="production" id="ref-for-typedef-feature-value-name④">&lt;feature-value-name></span>) <span id="ref-for-comb-any①③">||</span> annotation(<span class="production" id="ref-for-typedef-feature-value-name⑤">&lt;feature-value-name></span>) <span id="ref-for-comb-any①④">||</span> [ small-caps <span id="ref-for-comb-one⑥⑧">|</span> all-small-caps <span id="ref-for-comb-one⑥⑨">|</span> petite-caps <span id="ref-for-comb-one⑦⓪">|</span> all-petite-caps <span id="ref-for-comb-one⑦①">|</span> unicase <span id="ref-for-comb-one⑦②">|</span> titling-caps ] <span id="ref-for-comb-any①⑤">||</span> <a class="production css" data-link-type="type" href="#typedef-numeric-figure-values" id="ref-for-typedef-numeric-figure-values">&lt;numeric-figure-values></a> <span id="ref-for-comb-any①⑥">||</span> <a class="production css" data-link-type="type" href="#typedef-numeric-spacing-values" id="ref-for-typedef-numeric-spacing-values">&lt;numeric-spacing-values></a> <span id="ref-for-comb-any①⑦">||</span> <a class="production css" data-link-type="type" href="#typedef-numeric-fraction-values" id="ref-for-typedef-numeric-fraction-values">&lt;numeric-fraction-values></a> <span id="ref-for-comb-any①⑧">||</span> ordinal <span id="ref-for-comb-any①⑨">||</span> slashed-zero <span id="ref-for-comb-any②⓪">||</span> <a class="production css" data-link-type="type" href="#typedef-east-asian-variant-values" id="ref-for-typedef-east-asian-variant-values">&lt;east-asian-variant-values></a> <span id="ref-for-comb-any②①">||</span> <a class="production css" data-link-type="type" href="#typedef-east-asian-width-values" id="ref-for-typedef-east-asian-width-values">&lt;east-asian-width-values></a> <span id="ref-for-comb-any②②">||</span> ruby
]
     <tr>
      <th>Initial:
      <td>normal
   </table>
   <table class="def descdef">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-for="@font-face" data-dfn-type="descriptor" data-export id="descdef-font-face-font-feature-settings">font-feature-settings</dfn>
     <tr>
      <th>For:
      <td><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face③②">@font-face</a>
     <tr>
      <th>Value:
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦③">|</a> <a class="production css" data-link-type="type" href="#typedef-feature-tag-value" id="ref-for-typedef-feature-tag-value">&lt;feature-tag-value></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑥">#</a>
     <tr>
      <th>Initial:
      <td>normal
   </table>
   <p>These descriptors define initial settings that apply when the font defined by
an <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face③③">@font-face</a> rule is rendered.  They do not affect font selection.
Values are identical to those defined for the corresponding <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant⑥">font-variant</a> and <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings">font-feature-settings</a> properties.  When multiple font
feature descriptors or properties are used, the cumulative effect on
text rendering is detailed in <a href="#font-feature-resolution">§ 7 Font Feature Resolution</a>.
In cases where specific values define synthesized fallback for certain <span class="property" id="ref-for-descdef-font-face-font-variant⑦">font-variant</span> subproperties, the same synthesized fallback
applies when used within those values are used with the <span class="property" id="ref-for-descdef-font-face-font-variant⑧">font-variant</span> descriptor.</p>
   <h3 class="heading settled" data-level="4.8" id="font-face-loading"><span class="secno">4.8. </span><span class="content">Font loading guidelines</span><a class="self-link" href="#font-face-loading"></a></h3>
   <p>The <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face③④">@font-face</a> rule is designed to allow lazy loading
of font resources that are only downloaded when used within a
document.  A stylesheet can include <span class="css" id="ref-for-at-ruledef-font-face③⑤">@font-face</span> rules for
a library of fonts of which only a select set are used; user agents
must only download those fonts that are referred to within the style
rules applicable to a given page.  User agents that download all fonts
defined in <span class="css" id="ref-for-at-ruledef-font-face③⑥">@font-face</span> rules without considering whether
those fonts are in fact used within a page are considered
non-conformant. In cases where a font might be downloaded in character
fallback cases, user agents may download a font if it’s contained within
the computed value of <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family⑦">font-family</a> for a given text run.</p>
<pre>@font-face {
  font-family: GeometricModern;
  src: url(font.woff);
}

p {
  /* font will be downloaded for pages with p elements */
  font-family: GeometricModern, sans-serif;
}

h2 {
  /* font may be downloaded for pages with h2 elements, even if Futura is available locally */
  font-family: Futura, GeometricModern, sans-serif;
}
</pre>
   <p>In cases where textual content is loaded before downloadable fonts
are available, user agents may render text as it would be rendered if
downloadable font resources are not available or they may render text
transparently with fallback fonts to avoid a flash of text using a
fallback font.  In cases where the font download fails user agents must
display text, simply leaving transparent text is considered
non-conformant behavior.  Authors are advised to use fallback fonts in
their font lists that closely match the metrics of the
downloadable fonts to avoid large page reflows where possible.</p>
   <h3 class="heading settled" data-level="4.9" id="font-fetching-requirements"><span class="secno">4.9. </span><span class="content">Font fetching requirements <span id="same-origin-restriction"></span> <span id="allowing-cross-origin-font-loading"></span> </span><a class="self-link" href="#font-fetching-requirements"></a></h3>
   <p>For font loads, user agents must use the <a href="https://www.w3.org/TR/html5/infrastructure.html#cors-enabled-fetch">potentially CORS-enabled fetch</a> method defined by the <a data-link-type="biblio" href="#biblio-html5">[HTML5]</a> specification for URL’s defined
within @font-face rules. When fetching, user agents must use
"Anonymous" mode, set the referrer source to the stylesheet’s URL and
set the origin to the URL of the containing document.</p>
   <p class="note" role="note"><span>Note:</span> The implications of this for authors are that fonts
will typically not be loaded cross-origin unless authors specifically
takes steps to permit cross-origin loads. Sites can explicitly allow
cross-site loading of font data using the <code>Access-Control-Allow-Origin</code> HTTP header.  For other schemes, no explicit mechanism to allow
cross-origin loading, beyond what is permitted by the <a href="https://www.w3.org/TR/html5/infrastructure.html#cors-enabled-fetch">potentially CORS-enabled fetch</a> method, is defined or required.</p>
   <div class="example" id="example-dc5b69de">
    <a class="self-link" href="#example-dc5b69de"></a> For the examples given below, assume that a document is located at <code>http://example.com/page.html</code> and all URL’s link to valid
	font resources supported by the user agent. 
    <p>Fonts defined with the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src①">src</a> descriptor values below will be loaded:</p>
<pre>/* same origin (i.e. domain, scheme, port match document) */
src: url(fonts/simple.woff);

/* data url’s with no redirects are treated as same origin */
src: url("data:application/font-woff;base64,...");

/* cross origin, different domain */
/* Access-Control-Allow-Origin response header set to '*' */
src: url(http://another.example.com/fonts/simple.woff);
</pre>
    <p>Fonts defined with the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src②">src</a> descriptor values below will fail to load:</p>
<pre>/* cross origin, different scheme */
/* no Access-Control-xxx headers in response */
src: url(https://example.com/fonts/simple.woff);

/* cross origin, different domain */
/* no Access-Control-xxx headers in response */
src: url(http://another.example.com/fonts/simple.woff);
</pre>
   </div>
   <h2 class="heading settled" data-level="5" id="font-matching-algorithm"><span class="secno">5. </span><span class="content">Font Matching Algorithm</span><a class="self-link" href="#font-matching-algorithm"></a></h2>
   <p>The algorithm below describes how fonts are associated with
individual runs of text.  For each character in the run a font
family is chosen and a particular font face is selected
containing a glyph for that character.</p>
   <h3 class="heading settled" data-level="5.1" id="font-family-casing"><span class="secno">5.1. </span><span class="content">Case sensitivity of font family names</span><a class="self-link" href="#font-family-casing"></a></h3>
   <p>As part of the font matching algorithm outlined below, user agents must
match font family names used in style rules with actual font family names
contained in fonts available in a given environment or with font family names defined in <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face③⑦">@font-face</a> rules.  User agents must match these names case
insensitively, using the "Default Caseless Matching" algorithm outlined
in the Unicode specification <a data-link-type="biblio" href="#biblio-unicode">[UNICODE]</a>.  This algorithm is detailed
in section 3.13 entitled "Default Case Algorithms".  Specifically, the
algorithm must be applied without normalizing the strings involved and
without applying any language-specific tailorings.  The case folding
method specified by this algorithm uses the case mappings with status field
"C" or "F" in the CaseFolding.txt file of the Unicode Character Database.</p>
   <p class="note" role="note"><span>Note:</span> For authors this means that font family names are matched case
insensitively, whether those names exist in a platform font or
in the <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face③⑧">@font-face</a> rules contained in a stylesheet.
Authors should take care to ensure that names use a character sequence
consistent with the actual font family name, particularly when using
combining characters such as diacritical marks. For example, a family
name that contains an uppercase A (U+0041) followed by a combining
ring (U+030A) will <strong>not</strong> match a name that looks
identical but which uses the precomposed lowercase a-ring character
(U+00E5) instead of the combining sequence.</p>
   <p class="note" role="note"><span>Note:</span> Implementors should take care to verify that a given caseless string comparison
implementation uses this precise algorithm and not assume that a given
platform string matching routine follows it, as many of these have
locale-specific behavior or use some level of string normalization.</p>
   <h3 class="heading settled" data-level="5.2" id="font-style-matching"><span class="secno">5.2. </span><span class="content">Matching font styles</span><a class="self-link" href="#font-style-matching"></a></h3>
   <p>The procedure for choosing a font for a given character in a run of
text consists of iterating over the font families named by the <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family⑧">font-family</a> property, selecting
a font face with the appropriate style based on other font properties
and then determining whether a glyph exists for the given character.
This is done using the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="character-map">character map</dfn> of the font, data
which maps characters to the default glyph for that character. A font
is considered to <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="support">support</dfn> a given character if (1) the
character is contained in the font’s <em>character map</em> and (2) if
required by the containing script, shaping information is available
for that character.</p>
   <p>Some legacy fonts may include a given character
in the <a data-link-type="dfn" href="#character-map" id="ref-for-character-map②">character map</a> but lack the shaping information (e.g. <a href="http://www.microsoft.com/typography/otspec/ttochap1.htm">OpenType layout tables</a> or <a href="http://scripts.sil.org/cms/scripts/page.php?site_id=projects&amp;item_id=graphite_techAbout">Graphite tables</a>)
necessary for correctly rendering text runs containing that character.</p>
   <p>Codepoint sequences consisting of a base character followed by a
sequence of combining characters are treated slightly differently, see <a href="#cluster-matching">§ 5.3 Cluster matching</a>.</p>
   <p>For this procedure, the <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="default-face">default face</dfn> for a given font
family is defined to be the face that would be selected if all font
style properties were set to their initial value.</p>
   <div id="fontmatchingalg">
    <ol>
     <li data-md>
      <p>Using the computed font property values for a given element,
the user agent starts with the first family name
specified by the <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family⑨">font-family</a> property.</p>
     <li data-md>
      <p>If the family name is a generic family keyword, the user agent
looks up the appropriate font family name to be used.  User
agents may choose the generic font family to use based on the
language of the containing element or the Unicode range of the
character.</p>
     <li data-md>
      <p>For other family names, the user agent attempts to find the
family name among fonts defined via <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face③⑨">@font-face</a> rules and then
among available system fonts, matching names with a <a href="#font-family-casing">case-insensitive comparison</a> as outlined
in the section above.
On systems containing fonts with multiple localized font family
names, user agents must match any of these names independent of the
underlying system locale or platform API used.  If the font
resources defined for a given face in an <span class="css" id="ref-for-at-ruledef-font-face④⓪">@font-face</span> rule are either
not available or contain invalid font data, then the face should be
treated as not present in the family. If no faces are present for a
family defined via <span class="css" id="ref-for-at-ruledef-font-face④①">@font-face</span> rules, the family should be treated as
missing; matching a platform font with the same name must not occur
in this case.</p>
     <li data-md>
      <p>If a font family match occurs, the user agent assembles the set
of font faces in that family and then narrows the set to a single
face using other font properties in the order given below.  A group
of faces defined via <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face④②">@font-face</a> rules with identical font
descriptor values but differing <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range③">unicode-range</a> values are considered to be
a single <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="composite-face">composite face</dfn> for this step:</p>
      <div id="fontstylematchingalg">
       <ol>
        <li data-md>
         <p><a class="property" data-link-type="propdesc" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch⑦">font-stretch</a> is tried
first. If the matching set contains faces with width values
matching the <span class="property" id="ref-for-propdef-font-stretch⑧">font-stretch</span> value, faces with other width
values are removed from the matching set. If there is no face
that exactly matches the width value the nearest width is
used instead.  If the value of <span class="property" id="ref-for-propdef-font-stretch⑨">font-stretch</span> is <a class="css" data-link-type="maybe" href="#valdef-font-stretch-normal" id="ref-for-valdef-font-stretch-normal">normal</a> or
one of the condensed values, narrower width values are
checked first, then wider values.  If the value of <span class="property" id="ref-for-propdef-font-stretch①⓪">font-stretch</span> is one of the expanded values, wider values
are checked first, followed by narrower values. Once the
closest matching width has been determined by this process,
faces with other widths are removed from the matching set.</p>
        <li data-md>
         <p><a class="property" data-link-type="propdesc" href="#propdef-font-style" id="ref-for-propdef-font-style⑧">font-style</a> is tried next.
If the value of <span class="property" id="ref-for-propdef-font-style⑨">font-style</span> is <a class="css" data-link-type="maybe" href="#valdef-font-style-italic" id="ref-for-valdef-font-style-italic①">italic</a>, italic faces are
checked first, then oblique, then normal faces.  If the value
is <a class="css" data-link-type="maybe" href="#valdef-font-style-oblique" id="ref-for-valdef-font-style-oblique">oblique</a>, oblique faces are checked first, then italic
faces and then normal faces.  If the value is <a class="css" data-link-type="maybe" href="#valdef-font-style-normal" id="ref-for-valdef-font-style-normal②">normal</a>,
normal faces are checked first, then oblique faces, then
italic faces.  Faces with other style values are excluded
from the matching set. User agents are permitted to
distinguish between italic and oblique faces within platform
font families but this is not required, so all
italic or oblique faces may be treated as italic faces. However, within font
families defined via <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face④③">@font-face</a> rules, italic and oblique
faces must be distinguished using the value of the <span class="property" id="ref-for-propdef-font-style①⓪">font-style</span> descriptor.
For families that lack any italic or oblique faces, user agents
may create artificial oblique faces, if this is permitted by the
value of the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis③">font-synthesis</a> property.</p>
        <li data-md>
         <p><a class="property" data-link-type="propdesc" href="#propdef-font-weight" id="ref-for-propdef-font-weight①⓪">font-weight</a> is matched
next, so it will always reduce the matching set to a single font
face. If bolder/lighter relative weights are used, the
effective weight is calculated based on the inherited weight
value, as described in the definition of the <span class="property" id="ref-for-propdef-font-weight①①">font-weight</span> property. Given the desired weight and the weights of faces
in the matching set after the steps above, if the desired
weight is available that face matches.  Otherwise, a weight
is chosen using the rules below:</p>
         <ul>
          <li data-md>
           <p>If the desired weight is less than 400, weights below the
desired weight are checked in descending order followed by
weights above the desired weight in ascending order until a
match is found.</p>
          <li data-md>
           <p>If the desired weight is greater than 500, weights above the
desired weight are checked in ascending order followed by
weights below the desired weight in descending order until a
match is found.</p>
          <li data-md>
           <p>If the desired weight is 400, 500 is checked first and then
the rule for desired weights less than 400 is used.</p>
          <li data-md>
           <p>If the desired weight is 500, 400 is checked first and then
the rule for desired weights less than 400 is used.</p>
         </ul>
        <li data-md>
         <p><a class="property" data-link-type="propdesc" href="#propdef-font-size" id="ref-for-propdef-font-size①③">font-size</a> must be
matched within a UA-dependent margin of tolerance. (Typically, sizes
for scalable fonts are rounded to the nearest whole pixel, while the
tolerance for bitmapped fonts could be as large as 20%.) Further
computations, e.g., by <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-values-4/#em" id="ref-for-em①">em</a> values in other properties, are based on
the <span class="property" id="ref-for-propdef-font-size①④">font-size</span> value that
is used, not the one that is specified.</p>
       </ol>
      </div>
     <li data-md>
      <p>If the matched face is defined via <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face④④">@font-face</a> rules, user agents must use the procedure below to select a single
font:</p>
      <ol>
       <li data-md>
        <p>If the font resource has not been loaded and the range of
characters defined by the <a class="property" data-link-type="propdesc" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range④">unicode-range</a> descriptor value
includes the character in question, load the font.</p>
       <li data-md>
        <p>After downloading, if the <a data-link-type="dfn" href="#effective-character-map" id="ref-for-effective-character-map">effective character map</a> supports the character in question, select that font.</p>
      </ol>
      <p>When the matched face is a <a data-link-type="dfn" href="#composite-face" id="ref-for-composite-face">composite face</a>, user agents must use
the procedure above on each of the faces in the <span id="ref-for-composite-face①">composite face</span> in
reverse order of <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face④⑤">@font-face</a> rule definition.</p>
      <p>While the download occurs, user agents may either wait until the
font is downloaded or render once with substituted font metrics and
render again once the font is downloaded.</p>
     <li data-md>
      <p>If no matching face exists or the matched face does not contain
a glyph for the character to be rendered, the next family name is
selected and the previous three steps repeated.  Glyphs from other
faces in the family are not considered.  The only exception is that
user agents may optionally substitute a synthetically obliqued version of the <a data-link-type="dfn" href="#default-face" id="ref-for-default-face">default face</a> if that face supports a given glyph and synthesis
of these faces is permitted by the value of the <a class="property" data-link-type="propdesc" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis④">font-synthesis</a> property.
For example, a synthetic italic version of the regular face may be used if the
italic face doesn’t support glyphs for Arabic.</p>
     <li data-md>
      <p>If there are no more font families to be evaluated
and no matching face has been found,
then the user agent performs a <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="system-font-fallback">system font fallback</dfn> procedure
to find the best match for the character to be rendered.
The result of this procedure may vary across user agents.</p>
     <li data-md>
      <p>If a particular character cannot be displayed using any
font, the user agent should indicate by some means that a
character is not being displayed, displaying either a
symbolic representation of the missing glyph
(e.g. using a <a href="http://en.wikipedia.org/wiki/Last_resort_font">Last Resort Font</a>)
or using the missing character glyph from a default font.</p>
    </ol>
   </div>
   <p>Optimizations of this process are allowed provided that an
implementation behaves as if the algorithm had been followed exactly.
Matching occurs in a well-defined order to ensure that the results are
as consistent as possible across user agents, given an identical set
of available fonts and rendering technology.</p>
   <p>The <dfn class="dfn-paneled" data-dfn-type="dfn" data-export id="first-available-font">first available font</dfn>, used in the definition of <a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#font-relative-length" id="ref-for-font-relative-length">font-relative lengths</a> such as <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-inline-3/#valdef-leading-trim-over-ex" id="ref-for-valdef-leading-trim-over-ex">ex</a> and <a class="css" data-link-type="maybe" href="https://drafts.csswg.org/css-values-4/#ch" id="ref-for-ch">ch</a>, is defined to be the first available font that
would match any character given font families in the <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family①⓪">font-family</a> list (or a user agent’s default font if none are available).</p>
   <h3 class="heading settled" data-level="5.3" id="cluster-matching"><span class="secno">5.3. </span><span class="content">Cluster matching</span><a class="self-link" href="#cluster-matching"></a></h3>
   <p>When text contains characters such as combining marks, ideally
the base character should be rendered using the same font as the
mark, this assures proper placement of the mark.  For this
reason, the font matching algorithm for clusters is more specialized
than the general case of matching a single character by itself.
For sequences containing variation selectors, which indicate the precise
glyph to be used for a given character, user agents always attempt <a data-link-type="dfn" href="#system-font-fallback" id="ref-for-system-font-fallback">system font fallback</a> to find the appropriate glyph before using the
default glyph of the base character.</p>
   <p>A sequence of codepoints containing combining mark or other
modifiers is termed a grapheme cluster (see <a data-link-type="biblio" href="#biblio-css3text">[CSS3TEXT]</a> for a
more complete description).  For a given cluster containing
a base character, <var>b</var> and a sequence of combining characters <var>c1, c2…</var>, the entire cluster is matched using these steps:</p>
   <ol>
    <li data-md>
     <p>For each family in the font list, a face is chosen using the style
selection rules defined in the previous section.</p>
     <ol>
      <li data-md>
       <p>If all characters in the sequence <var>b + c1 + c2 …</var> are completely supported by the font, select this
font for the sequence.</p>
      <li data-md>
       <p>If a sequence of multiple codepoints is canonically equivalent
to a single character and the font <a data-link-type="dfn" href="#support" id="ref-for-support">supports</a> that
character, select this font for the sequence and use the glyph
associated with the canonically equiavlent character for the
entire cluster.</p>
     </ol>
    <li data-md>
     <p>If no font was found in the font list in step 1:</p>
     <ol>
      <li data-md>
       <p>If <var>c1</var> is a variation selector, system fallback must be used
to find a font that <a data-link-type="dfn" href="#support" id="ref-for-support①">supports</a> the full sequence of <var>b + c1</var>.
If no font on the system <span id="ref-for-support②">supports</span> the full sequence, match the single
character <var>b</var> using the normal procedure for matching single
characters and ignore the variation selector. Note: a sequence with
more than one variation selector must be treated as an encoding error and
the trailing selectors must be ignored. <a data-link-type="biblio" href="#biblio-unicode">[UNICODE]</a></p>
      <li data-md>
       <p>Otherwise, the user agent may optionally use system font
fallback to match a font that <a data-link-type="dfn" href="#support" id="ref-for-support③">supports</a> the entire cluster.</p>
     </ol>
    <li data-md>
     <p>If no font is found in step 2, use the matching sequence
from step 1 to determine the longest sequence that is completely <a data-link-type="dfn" href="#support" id="ref-for-support④">supported</a> by a font in the font list and attempt to match the remaining
combining characters separately using the rules for single characters.</p>
   </ol>
   <h3 class="heading settled" data-level="5.4" id="char-handling-issues"><span class="secno">5.4. </span><span class="content">Character handling issues</span><a class="self-link" href="#char-handling-issues"></a></h3>
   <p>CSS font matching is always performed on text runs containing
Unicode characters, so documents using legacy encodings are assumed to
have been transcoded before matching fonts.  For fonts containing <a data-link-type="dfn" href="#character-map" id="ref-for-character-map③">character maps</a> for both legacy encodings and Unicode, the contents of
the legacy encoding <span id="ref-for-character-map④">character map</span> must have no effect on the results
of the font matching process.</p>
   <p>The font matching process does not assume that text runs are in
either normalized or denormalized form (see <a data-link-type="biblio" href="#biblio-charmod-norm">[CHARMOD-NORM]</a> for more
details).  Fonts may only support precomposed forms and not the
decomposed sequence of base character plus combining marks. Authors
should always tailor their choice of fonts to their content, including
whether that content contains normalized or denormalized character
streams.</p>
   <p>If a given character is a Private-Use Area Unicode codepoint, user
agents must only match font families named in the <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family①①">font-family</a> list
that are not generic families. If none of the families named in the <span class="property" id="ref-for-propdef-font-family①②">font-family</span> list contain a glyph for that codepoint, user agents
must display some form of missing glyph symbol for that character
rather than attempting <a data-link-type="dfn" href="#system-font-fallback" id="ref-for-system-font-fallback①">system font fallback</a> for that
codepoint.  When matching the replacement character U+FFFD, user
agents may skip the font matching process and immediately display some
form of missing glyph symbol, they are not required to display the
glyph from the font that would be selected by the font matching
process.</p>
   <p>In general, the fonts for a given family will all have the same or
similar <a data-link-type="dfn" href="#character-map" id="ref-for-character-map⑤">character maps</a>.  The process
outlined here is designed to handle even font families containing
faces with widely variant <span id="ref-for-character-map⑥">character maps</span>.
However, authors are cautioned that the use of such
families can lead to unexpected results.</p>
   <h3 class="heading settled" data-level="5.5" id="font-matching-changes"><span class="secno">5.5. </span><span class="content">Font matching changes since CSS 2.1</span><a class="self-link" href="#font-matching-changes"></a></h3>
   <p>The algorithm above is different from CSS 2.1 in a number of key places.
These changes were made to better reflect actual font matching behavior
across user agent implementations.</p>
   <p>Differences compared to the font matching algorithm in CSS 2.1:</p>
   <ul>
    <li data-md>
     <p>The algorithm includes font-stretch matching.</p>
    <li data-md>
     <p>All possible font-style matching scenarios are delineated.</p>
    <li data-md>
     <p>Small-caps fonts are not matched as part of the font matching process, they are now handled via font features.</p>
    <li data-md>
     <p>Unicode variation selector matching is required.</p>
    <li data-md>
     <p>Cluster sequences are matched as a unit.</p>
   </ul>
   <h3 class="heading settled" data-level="5.6" id="font-matching-examples"><span class="secno">5.6. </span><span class="content">Font matching examples</span><a class="self-link" href="#font-matching-examples"></a></h3>
   <div class="example" id="example-dee54679">
    <a class="self-link" href="#example-dee54679"></a> It’s useful to note that the CSS selector syntax  may be used to
	create language-sensitive typography. For example, some Chinese and
	Japanese characters are unified to have the same Unicode code point,
	although the abstract glyphs are not the same in the two languages. 
<pre>:lang(ja) { font: 900 14pt/16pt "Heisei Mincho W9", serif; }
*:lang(zh-Hant-TW) { font: 800 14pt/16.5pt "Li Sung", serif; }
</pre>
    <p>This selects any element that has the given language—<wbr>Japanese or Traditional Chinese as used in Taiwan—<wbr>and uses the appropriate font.</p>
   </div>
   <h2 class="heading settled" data-level="6" id="font-rend-props"><span class="secno">6. </span><span class="content">Font Feature Properties</span><a class="self-link" href="#font-rend-props"></a></h2>
   <p>Modern font technologies support a variety of advanced typographic
and language-specific font features.  Using these features, a single
font can provide glyphs for a wide range of ligatures, contextual and
stylistic alternates, tabular and old-style figures, small capitals,
automatic fractions, swashes, and alternates specific to a given
language. To allow authors control over these font capabilities, the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant⑨">font-variant</a> property has been expanded for CSS3. It now functions as
a shorthand for a set of properties that provide control over
stylistic font features.</p>
   <h3 class="heading settled" data-level="6.1" id="glyph-selection-positioning"><span class="secno">6.1. </span><span class="content">Glyph selection and positioning</span><a class="self-link" href="#glyph-selection-positioning"></a></h3>
   <p>Simple fonts used for displaying Latin text use a very basic
processing model. Fonts contain a <a data-link-type="dfn" href="#character-map" id="ref-for-character-map⑦">character map</a> which maps each
character to a glyph for that character.  Glyphs for subsequent
characters are simply placed one after the other along a run of text.  Modern font
formats such as OpenType and AAT (Apple Advanced Typography) use a
richer processing model. The glyph for a given character can be
chosen and positioned not just based on the codepoint of the character
itself, but also on adjacent characters as well as the language,
script, and features enabled for the text.  Font features may be
required for specific scripts, or recommended as enabled by default or
they might be stylistic features meant to be used under author
control.</p>
   <p>For a good visual overview of these features, see the <a data-link-type="biblio" href="#biblio-opentype-font-guide">[OPENTYPE-FONT-GUIDE]</a>.  For a detailed description of glyph processing for
OpenType fonts, see <a data-link-type="biblio" href="#biblio-windows-glyph-proc">[WINDOWS-GLYPH-PROC]</a>.</p>
   <p>Stylistic font features can be classified into two broad
categories: ones that affect the harmonization of glyph shapes with the
surrounding context, such as kerning and ligature features, and ones
such as the small-caps, subscript/superscript and alternate features
that affect shape selection.</p>
   <p>The subproperties of <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant①⓪">font-variant</a> listed below are used to control
these stylistic font features. They do not control features that are
required for displaying certain scripts, such as the OpenType features
used when displaying Arabic or Indic language text.  They affect glyph
selection and positioning, but do not affect font selection as
described in the font matching section (except in cases required for
compatibility with CSS 2.1).</p>
   <p>To assure consistent behavior across user agents, the equivalent
OpenType property settings are listed for individual properties and
are normative.  When using other font formats these
should be used as a guideline to map CSS font feature property values
to specific font features.</p>
   <h3 class="heading settled" data-level="6.2" id="language-specific-support"><span class="secno">6.2. </span><span class="content">Language-specific display</span><a class="self-link" href="#language-specific-support"></a></h3>
   <p>OpenType also supports language-specific glyph selection and
positioning, so that text can be displayed correctly in cases where
the language dictates a specific display behavior. Many languages
share a common script, but the shape of certain letters can vary
across those languages. For example, certain Cyrillic letters have
different shapes in Russian text than in Bulgarian. In Latin text,
it’s common to render "fi" with an explicit fi-ligature that lacks a
dot on the "i". However, in languages such as Turkish which uses both
a dotted-i and a dotless-i, it’s important to not use this ligature or
use a specialized version that contains a dot over the "i".  The
example below shows language-specific variations based on stylistic
traditions found in Spanish, Italian and French orthography:</p>
   <div class="featex"><img alt="language specific forms, spanish" src="locl-1.png"></div>
   <div class="featex"><img alt="language specific forms, italian" src="locl-2.png"></div>
   <div class="featex"><img alt="language specific forms, french" src="locl-3.png"></div>
   <p>If the content language of the element is known according to the
rules of the <a data-link-type="dfn" href="https://drafts.csswg.org/selectors-4/#document-language" id="ref-for-document-language">document language</a>,
user agents are required to infer the OpenType language system from
the content language and use that when selecting and positioning
glyphs using an OpenType font.</p>
   <p>For OpenType fonts, in some cases it may be necessary to explicitly
declare the OpenType language to be used, for example when displaying
text in a given language that uses the typographic conventions of
another language or when the font does not explicitly support a given
language but supports a language that shares common typographic
conventions. The <a class="property" data-link-type="propdesc" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override②">font-language-override</a> property is used for this
purpose.</p>
   <h3 class="heading settled" data-level="6.3" id="font-kerning-prop"><span class="secno">6.3. </span><span class="content">Kerning: the <a class="property" data-link-type="propdesc" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning①">font-kerning</a> property</span><a class="self-link" href="#font-kerning-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-kerning">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-kerning">font-kerning</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">auto <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦④">|</a> normal <span id="ref-for-comb-one⑦⑤">|</span> none
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>auto
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Kerning is the contextual adjustment of inter-glyph spacing. This
property controls metric kerning, kerning that utilizes adjustment
data contained in the font.</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-kerning" data-dfn-type="value" data-export id="valdef-font-kerning-auto">auto</dfn> 
    <dd>Specifies that kerning is applied at the discretion of the user agent 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-kerning" data-dfn-type="value" data-export id="valdef-font-kerning-normal">normal</dfn> 
    <dd>Specifies that kerning is applied 
    <dt><dfn class="css" data-dfn-for="font-kerning" data-dfn-type="value" data-export id="valdef-font-kerning-none">none<a class="self-link" href="#valdef-font-kerning-none"></a></dfn> 
    <dd>Specifies that kerning is not applied 
   </dl>
   <p>For fonts that do not include kerning data this property will have no
visible effect.  When rendering with OpenType fonts, the <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> specification suggests that kerning be enabled by default.  When kerning is
enabled, the OpenType <code>kern</code> feature is enabled (for vertical
text runs the <code>vkrn</code> feature is enabled instead). User agents
must also support fonts that only support kerning via data contained in a <code>kern</code> font table, as detailed in the OpenType
specification. If the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-letter-spacing" id="ref-for-propdef-letter-spacing">letter-spacing</a> property is defined, kerning
adjustments are considered part of the default spacing and letter
spacing adjustments are made after kerning has been applied.</p>
   <p>When set to <a class="css" data-link-type="maybe" href="#valdef-font-kerning-auto" id="ref-for-valdef-font-kerning-auto">auto</a>, user agents can determine whether to apply
kerning or not based on a number of factors: text size, script, or
other factors that influence text processing speed.  Authors who want
proper kerning should use <a class="css" data-link-type="maybe" href="#valdef-font-kerning-normal" id="ref-for-valdef-font-kerning-normal">normal</a> to explicitly enable kerning.  Likewise,
some authors may prefer to disable kerning in situations where performance
is more important than precise appearance.  However, in well-designed
modern implementations the use of kerning generally does not have a
large impact on text rendering speed.</p>
   <h3 class="heading settled" data-level="6.4" id="font-variant-ligatures-prop"><span class="secno">6.4. </span><span class="content">Ligatures: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures">font-variant-ligatures</a> property</span><a class="self-link" href="#font-variant-ligatures-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-ligatures">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-ligatures">font-variant-ligatures</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑦⑥">|</a> none <span id="ref-for-comb-one⑦⑦">|</span> <a class="production css" data-link-type="type" href="#typedef-common-lig-values" id="ref-for-typedef-common-lig-values①">&lt;common-lig-values></a> <span id="ref-for-comb-one⑦⑧">|</span> <a class="production css" data-link-type="type" href="#typedef-discretionary-lig-values" id="ref-for-typedef-discretionary-lig-values①">&lt;discretionary-lig-values></a> <span id="ref-for-comb-one⑦⑨">|</span> <a class="production css" data-link-type="type" href="#typedef-historical-lig-values" id="ref-for-typedef-historical-lig-values①">&lt;historical-lig-values></a> <span id="ref-for-comb-one⑧⓪">|</span> <a class="production css" data-link-type="type" href="#typedef-contextual-alt-values" id="ref-for-typedef-contextual-alt-values①">&lt;contextual-alt-values></a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Ligatures and contextual forms are ways of combining glyphs to produce more harmonized forms.</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-common-lig-values">&lt;common-lig-values></dfn>        = common-ligatures <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧①">|</a> no-common-ligatures
<dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-discretionary-lig-values">&lt;discretionary-lig-values></dfn> = discretionary-ligatures <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧②">|</a> no-discretionary-ligatures
<dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-historical-lig-values">&lt;historical-lig-values></dfn>    = historical-ligatures <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧③">|</a> no-historical-ligatures
<dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-contextual-alt-values">&lt;contextual-alt-values></dfn>    = contextual <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧④">|</a> no-contextual
</pre>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-normal">normal<a class="self-link" href="#valdef-font-variant-ligatures-normal"></a></dfn> 
    <dd> Specifies that common default features are enabled, as described in <a href="#font-feature-resolution">§ 7 Font Feature Resolution</a>.
		For OpenType fonts, common ligatures and contextual forms are on by default,
		discretionary and historical ligatures are not. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-ligatures" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-none">none</dfn> 
    <dd> Specifies that all types of ligatures and contextual forms covered by this property are
		explicitly disabled.  In situations where ligatures are not considered necessary, this may
		improve the speed of text rendering. 
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures <common-lig-values>" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-common-lig-values-common-ligatures">common-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-common-lig-values-common-ligatures"></a></dfn> 
    <dd>
      Enables display of common ligatures (OpenType features: <code>liga</code>, <code>clig</code>).  For OpenType fonts,
		common ligatures are enabled by default. 
     <div class="featex"><img alt="common ligature example" src="liga.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-ligatures <common-lig-values>" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-common-lig-values-no-common-ligatures">no-common-ligatures</dfn> 
    <dd> Disables display of common ligatures (OpenType features: <code>liga</code>, <code>clig</code>). 
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures <discretionary-lig-values>" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-discretionary-lig-values-discretionary-ligatures">discretionary-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-discretionary-lig-values-discretionary-ligatures"></a></dfn> 
    <dd>
      Enables display of discretionary ligatures (OpenType feature: <code>dlig</code>).  Which ligatures
		are discretionary or optional is decided by the type designer, so authors will need to refer to
		the documentation of a given font to understand which ligatures are considered discretionary. 
     <div class="featex"><img alt="discretionary ligature example" src="dlig.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures <discretionary-lig-values>" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-discretionary-lig-values-no-discretionary-ligatures">no-discretionary-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-discretionary-lig-values-no-discretionary-ligatures"></a></dfn> 
    <dd> Disables display of discretionary ligatures (OpenType feature: <code>dlig</code>). 
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures <historical-lig-values>" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-historical-lig-values-historical-ligatures">historical-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-historical-lig-values-historical-ligatures"></a></dfn> 
    <dd>
      Enables display of historical ligatures (OpenType feature: <code>hlig</code>). 
     <div class="featex"><img alt="historical ligature example" src="hlig.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures <historical-lig-values>" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-historical-lig-values-no-historical-ligatures">no-historical-ligatures<a class="self-link" href="#valdef-font-variant-ligatures-historical-lig-values-no-historical-ligatures"></a></dfn> 
    <dd> Disables display of historical ligatures (OpenType feature: <code>hlig</code>). 
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures <contextual-alt-values>" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-contextual-alt-values-contextual">contextual<a class="self-link" href="#valdef-font-variant-ligatures-contextual-alt-values-contextual"></a></dfn> 
    <dd>
      Enables display of contextual alternates (OpenType feature: <code>calt</code>).  Although
		not strictly a ligature feature, like ligatures this feature is commonly used to harmonize
		the shapes of glyphs with the surrounding context.  For OpenType fonts, this feature is
		on by default. 
     <div class="featex"><img alt="contextual alternate example" src="calt.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-ligatures <contextual-alt-values>" data-dfn-type="value" data-export id="valdef-font-variant-ligatures-contextual-alt-values-no-contextual">no-contextual<a class="self-link" href="#valdef-font-variant-ligatures-contextual-alt-values-no-contextual"></a></dfn> 
    <dd> Disables display of contextual alternates (OpenType feature: <code>calt</code>). 
   </dl>
   <p>Required ligatures, needed for correctly rendering complex scripts, are
not affected by the settings above, including <a class="css" data-link-type="maybe" href="#valdef-font-variant-ligatures-none" id="ref-for-valdef-font-variant-ligatures-none">none</a> (OpenType feature: <code>rlig</code>).</p>
   <h3 class="heading settled" data-level="6.5" id="font-variant-position-prop"><span class="secno">6.5. </span><span class="content">Subscript and superscript forms: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position①">font-variant-position</a> property</span><a class="self-link" href="#font-variant-position-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-position">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-position">font-variant-position</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧⑤">|</a> sub <span id="ref-for-comb-one⑧⑥">|</span> super
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>This property is used to enable typographic subscript and superscript
glyphs.  These are alternate glyphs designed within the same em-box as default
glyphs and are intended to be laid out on the same baseline as the default
glyphs, with no resizing or repositioning of the baseline.  They are explicitly
designed to match the surrounding text and to be more readable without affecting
the line height.</p>
   <div class="figure">
    <img alt="comparison between real subscript glyphs and synthesized ones" src="realsubscripts.png">
    <p class="caption">Subscript glyphs (top) vs. typical synthesized subscripts (bottom)</p>
   </div>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-position" data-dfn-type="value" data-export id="valdef-font-variant-position-normal">normal</dfn> 
    <dd>None of the features listed below are enabled. 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-position" data-dfn-type="value" data-export id="valdef-font-variant-position-sub">sub</dfn> 
    <dd>Enables display of subscript variants (OpenType feature: <code>subs</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-position" data-dfn-type="value" data-export id="valdef-font-variant-position-super">super</dfn> 
    <dd>Enables display of superscript variants (OpenType feature: <code>sups</code>). 
   </dl>
   <p>Because of the semantic nature of subscripts and superscripts, when
the value is either <a class="css" data-link-type="maybe" href="#valdef-font-variant-position-sub" id="ref-for-valdef-font-variant-position-sub">sub</a> or <a class="css" data-link-type="maybe" href="#valdef-font-variant-position-super" id="ref-for-valdef-font-variant-position-super">super</a> for a given contiguous run of
text, if a variant glyph is not available for all the characters in
the run, simulated glyphs must be synthesized for all characters using
reduced forms of the glyphs that would be used without this feature
applied. This is done per run to avoid a mixture of variant glyphs and
synthesized ones that would not align correctly. In the case of
OpenType fonts that lack subscript or superscript glyphs for a given
character, user agents must use the appropriate subscript and
superscript metrics specified in the selected font’s <a href="http://www.microsoft.com/typography/otspec/os2.htm#subxs">OS/2 table</a> <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a> to calculate the size and offset of the synthesized substitutes.</p>
   <div class="figure">
    <img alt="alternate superscripts vs. glyphs synthesized using superscript metrics" src="superscript-alt-synth.png">
    <p class="caption">Superscript alternate glyph (left), synthesized superscript glyphs (middle),  and incorrect mixture of the two (right)</p>
   </div>
   <p>In situations where text decorations are only applied to runs
of text containing superscript or subscript glyphs, the synthesized
glyphs must be used to avoid problems with the placement of decorations.</p>
   <p>In the past, user agents have used font-size and
vertical-align to simulate subscripts and superscripts for the <a data-link-type="element">sub</a> and <span>sup</span> elements. To allow a backwards
compatible way of defining subscripts and superscripts, it is recommended
that authors use conditional rules <a data-link-type="biblio" href="#biblio-css3-conditional">[CSS3-CONDITIONAL]</a> so that
older user agents will still render subscripts and superscripts via
the older mechanism.</p>
   <p>Authors should note that fonts typically only provide subscript and
superscript glyphs for a subset of all characters supported by the
font.  For example, while subscript and superscript glyphs are often
available for Latin numbers, glyphs for punctuation and letter
characters are less frequently provided.  The synthetic fallback rules
defined for this property assure that subscripts and superscripts will
always appear but the appearance may not match author expectations if
the font used does not provide the appropriate alternate glyph for all
characters contained in a subscript or superscript.</p>
   <p>This property is not cumulative.  Applying it to elements within a
subscript or superscript won’t nest the placement of a subscript or
superscript glyph. Images contained within text runs where the value
of this property is <a class="css" data-link-type="maybe" href="#valdef-font-variant-position-sub" id="ref-for-valdef-font-variant-position-sub①">sub</a> or <a class="css" data-link-type="maybe" href="#valdef-font-variant-position-super" id="ref-for-valdef-font-variant-position-super①">super</a> will be drawn just as they would
if the value was <a class="css" data-link-type="maybe" href="#valdef-font-variant-position-normal" id="ref-for-valdef-font-variant-position-normal">normal</a>.</p>
   <p>Because of these limitations, <a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position②">font-variant-position</a> is not
recommended for use in user agent stylesheets. Authors should use it
in cases where subscripts or superscripts will only contain the narrow
range of characters supported by the fonts specified.</p>
   <p class="note" role="note"><span>Note:</span> The variant glyphs use the same baseline as the default
glyphs would use. There is no shift in the placement along the
baseline, so the use of variant glyphs doesn’t affect the height of
the inline box or alter the height of the linebox.  This makes superscript
and subscript variants ideal for situations where it’s important that leading
remain constant, such as in multi-column layout.</p>
   <div class="example" id="example-cb776798">
    <a class="self-link" href="#example-cb776798"></a> A typical user agent default style for the <code>sub</code> element: 
<pre>sub {
  vertical-align: sub;
  font-size: smaller;
  line-height: normal;
}
</pre>
    <p>Using font-variant-position to specify typographic subscripts in a way
	that will still show subscripts in older user agents:</p>
<pre>@supports ( font-variant-position: sub ) {

  sub {
    vertical-align: baseline;
    font-size: 100%;
    line-height: inherit;
    font-variant-position: sub;
  }

}
</pre>
    <p>User agents that support the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position③">font-variant-position</a> property will
	select a subscript variant glyph and render this without adjusting the
	baseline or font-size.  Older user agents will ignore the <span class="property" id="ref-for-propdef-font-variant-position④">font-variant-position</span> property definition and use the standard
	defaults for subscripts.</p>
   </div>
   <h3 class="heading settled" data-level="6.6" id="font-variant-caps-prop"><span class="secno">6.6. </span><span class="content">Capitalization: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-caps" id="ref-for-propdef-font-variant-caps">font-variant-caps</a> property</span><a class="self-link" href="#font-variant-caps-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-caps">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-caps">font-variant-caps</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑧⑦">|</a> small-caps <span id="ref-for-comb-one⑧⑧">|</span> all-small-caps <span id="ref-for-comb-one⑧⑨">|</span> petite-caps <span id="ref-for-comb-one⑨⓪">|</span> all-petite-caps <span id="ref-for-comb-one⑨①">|</span> unicase <span id="ref-for-comb-one⑨②">|</span> titling-caps
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>This property allows the selection of alternate glyphs used for
small or petite capitals or for titling.  These glyphs are specifically
designed to blend well with the surrounding normal glyphs, to maintain
the weight and readability which suffers when text is simply resized to
fit this purpose.</p>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-normal">normal<a class="self-link" href="#valdef-font-variant-caps-normal"></a></dfn> 
    <dd> None of the features listed below are enabled. 
    <dt><dfn class="css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-small-caps">small-caps<a class="self-link" href="#valdef-font-variant-caps-small-caps"></a></dfn> 
    <dd>
      Enables display of small capitals (OpenType feature: <code>smcp</code>).
		Small-caps glyphs typically use the form of uppercase letters but are reduced to the size of lowercase letters. 
     <div class="featex"><img alt="small-caps example" src="smcp.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-all-small-caps">all-small-caps</dfn> 
    <dd> Enables display of small capitals for both upper and lowercase letters (OpenType features: <code>c2sc</code>, <code>smcp</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-petite-caps">petite-caps</dfn> 
    <dd> Enables display of petite capitals (OpenType feature: <code>pcap</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-all-petite-caps">all-petite-caps</dfn> 
    <dd> Enables display of petite capitals for both upper and lowercase letters (OpenType features: <code>c2pc</code>, <code>pcap</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-unicase">unicase</dfn> 
    <dd> Enables display of mixture of small capitals for uppercase letters with normal lowercase letters (OpenType feature: <code>unic</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-caps" data-dfn-type="value" data-export id="valdef-font-variant-caps-titling-caps">titling-caps</dfn> 
    <dd> Enables display of titling capitals (OpenType feature: <code>titl</code>).  Uppercase
		letter glyphs are often designed for use with lowercase letters.  When used in all uppercase titling sequences
		they can appear too strong.  Titling capitals are designed specifically for this situation. 
   </dl>
   <p>The availability of these glyphs is based on whether a given
feature is defined or not in the feature list of the font.  User
agents can optionally decide this on a per-script basis but should
explicitly not decide this on a per-character basis.</p>
   <p>Some fonts may only support a subset or none of the features
described for this property.  For backwards compatibility with CSS
2.1, if <a class="css" data-link-type="maybe" href="#valdef-font-variant-css21-font-small-caps" id="ref-for-valdef-font-variant-css21-font-small-caps①">small-caps</a> or <a class="css" data-link-type="maybe" href="#valdef-font-variant-caps-all-small-caps" id="ref-for-valdef-font-variant-caps-all-small-caps">all-small-caps</a> is specified but small-caps
glyphs are not available for a given font, user agents should simulate
a small-caps font, for example by taking a normal font and replacing
the glyphs for lowercase letters with scaled versions of the glyphs
for uppercase characters (replacing the glyphs for both upper and
lowercase letters in the case of <span class="css" id="ref-for-valdef-font-variant-caps-all-small-caps①">all-small-caps</span>).</p>
   <div class="figure" style="padding: 0; margin: auto;">
    <img alt="synthetic vs. real small-caps" class="hires" src="synthetic-vs-real-small-caps.png" width="512">
    <p class="caption">Synthetic vs. real small-caps</p>
   </div>
   <p>To match the surrounding text, a font may provide alternate glyphs
for caseless characters when these features are enabled but when a
user agent simulates small capitals, it must not attempt to simulate
alternates for codepoints which are considered caseless.</p>
   <div class="figure" style="padding: 0; margin: auto;">
    <img alt="caseless characters with small-caps, all-small-caps enabled" class="hires" src="small-capitals-variations.png" width="418">
    <p class="caption">Caseless characters with small-caps, all-small-caps enabled</p>
   </div>
   <p>If either <a class="css" data-link-type="maybe" href="#valdef-font-variant-caps-petite-caps" id="ref-for-valdef-font-variant-caps-petite-caps">petite-caps</a> or <a class="css" data-link-type="maybe" href="#valdef-font-variant-caps-all-petite-caps" id="ref-for-valdef-font-variant-caps-all-petite-caps">all-petite-caps</a> is specified for a
font that doesn’t support these features, the property behaves as if <a class="css" data-link-type="maybe" href="#valdef-font-variant-css21-font-small-caps" id="ref-for-valdef-font-variant-css21-font-small-caps②">small-caps</a> or <a class="css" data-link-type="maybe" href="#valdef-font-variant-caps-all-small-caps" id="ref-for-valdef-font-variant-caps-all-small-caps②">all-small-caps</a>, respectively, had been specified. If <a class="css" data-link-type="maybe" href="#valdef-font-variant-caps-unicase" id="ref-for-valdef-font-variant-caps-unicase">unicase</a> is specified for a font that doesn’t support that feature,
the property behaves as if <span class="css" id="ref-for-valdef-font-variant-css21-font-small-caps③">small-caps</span> was applied only to lowercased
uppercase letters.  If <a class="css" data-link-type="maybe" href="#valdef-font-variant-caps-titling-caps" id="ref-for-valdef-font-variant-caps-titling-caps">titling-caps</a> is specified with a font that
does not support this feature, this property has no visible effect.
When simulated small capital glyphs are used, for scripts that lack uppercase and
lowercase letters, <span class="css" id="ref-for-valdef-font-variant-css21-font-small-caps④">small-caps</span>, <span class="css" id="ref-for-valdef-font-variant-caps-all-small-caps③">all-small-caps</span>, <span class="css" id="ref-for-valdef-font-variant-caps-petite-caps①">petite-caps</span>, <span class="css" id="ref-for-valdef-font-variant-caps-all-petite-caps①">all-petite-caps</span> and <span class="css" id="ref-for-valdef-font-variant-caps-unicase①">unicase</span> have no visible effect.</p>
   <p>When casing transforms are used to simulate small capitals, the
casing transformations must match those used for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-text-transform" id="ref-for-propdef-text-transform">text-transform</a> property.</p>
   <p>As a last resort, unscaled uppercase letter glyphs in a
normal font may replace glyphs in a small-caps font so that the text
appears in all uppercase letters.</p>
   <div class="figure" style="padding: 0; margin: auto;">
    <img alt="using all-small-caps in acronym-laden text" class="hires" src="acronym-laden-text.png" width="596">
    <p class="caption">Using small capitals to improve readability in acronym-laden text</p>
   </div>
   <div class="example" id="example-2f16c1b0">
    <a class="self-link" href="#example-2f16c1b0"></a> Quotes rendered italicised, with small-caps on the first line: 
<pre>blockquote            { font-style: italic; }
blockquote:first-line { font-variant: small-caps; }

&lt;blockquote><a href="http://lists.w3.org/Archives/Public/www-style/2009Dec/0036.html" style="text-decoration: none; border: none;">I’ll be honor-bound to slap them like a haddock.</a>&lt;/blockquote>
</pre>
   </div>
   <h3 class="heading settled" data-level="6.7" id="font-variant-numeric-prop"><span class="secno">6.7. </span><span class="content">Numerical formatting: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-numeric" id="ref-for-propdef-font-variant-numeric">font-variant-numeric</a> property</span><a class="self-link" href="#font-variant-numeric-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-numeric">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-numeric">font-variant-numeric</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨③">|</a> [ <a class="production css" data-link-type="type" href="#typedef-numeric-figure-values" id="ref-for-typedef-numeric-figure-values①">&lt;numeric-figure-values></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any②③">||</a> <a class="production css" data-link-type="type" href="#typedef-numeric-spacing-values" id="ref-for-typedef-numeric-spacing-values①">&lt;numeric-spacing-values></a> <span id="ref-for-comb-any②④">||</span> <a class="production css" data-link-type="type" href="#typedef-numeric-fraction-values" id="ref-for-typedef-numeric-fraction-values①">&lt;numeric-fraction-values></a> <span id="ref-for-comb-any②⑤">||</span> ordinal <span id="ref-for-comb-any②⑥">||</span> slashed-zero ]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Specifies control over numerical forms. The example below shows how
some of these values can be combined to influence the rendering of
tabular data with fonts that support these features. Within normal
paragraph text, proportional numbers are used while tabular numbers
are used so that columns of numbers line up properly:</p>
   <div class="figure" style="padding: 0; margin: auto;">
    <img alt="combining number styles" src="numberstyles.png">
    <p class="caption">Using number styles</p>
   </div>
   <p>Possible combinations:</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-numeric-figure-values">&lt;numeric-figure-values></dfn>   = lining-nums <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨④">|</a> oldstyle-nums
<dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-numeric-spacing-values">&lt;numeric-spacing-values></dfn>  = proportional-nums <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑤">|</a> tabular-nums
<dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-numeric-fraction-values">&lt;numeric-fraction-values></dfn> = diagonal-fractions <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑥">|</a> stacked-fractions
</pre>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-normal">normal<a class="self-link" href="#valdef-font-variant-numeric-normal"></a></dfn> 
    <dd>None of the features listed below are enabled. 
    <dt><dfn class="css" data-dfn-for="font-variant-numeric <numeric-figure-values>" data-dfn-type="value" data-export id="valdef-font-variant-numeric-numeric-figure-values-lining-nums">lining-nums<a class="self-link" href="#valdef-font-variant-numeric-numeric-figure-values-lining-nums"></a></dfn> 
    <dd>Enables display of lining numerals (OpenType feature: <code>lnum</code>). 
    <dt><dfn class="css" data-dfn-for="font-variant-numeric <numeric-figure-values" data-dfn-type="value" data-export id="valdef-font-variant-numeric-numeric-figure-values-oldstyle-nums">oldstyle-nums<a class="self-link" href="#valdef-font-variant-numeric-numeric-figure-values-oldstyle-nums"></a></dfn> 
    <dd>Enables display of old-style numerals (OpenType feature: <code>onum</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-numeric <numeric-spacing-values>" data-dfn-type="value" data-export id="valdef-font-variant-numeric-numeric-spacing-values-proportional-nums">proportional-nums</dfn> 
    <dd>Enables display of proportional numerals (OpenType feature: <code>pnum</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-numeric <numeric-spacing-values>" data-dfn-type="value" data-export id="valdef-font-variant-numeric-numeric-spacing-values-tabular-nums">tabular-nums</dfn> 
    <dd>Enables display of tabular numerals (OpenType feature: <code>tnum</code>). 
    <dt><dfn class="css" data-dfn-for="font-variant-numeric <numeric-fraction-values>" data-dfn-type="value" data-export id="valdef-font-variant-numeric-numeric-fraction-values-diagonal-fractions">diagonal-fractions<a class="self-link" href="#valdef-font-variant-numeric-numeric-fraction-values-diagonal-fractions"></a></dfn> 
    <dd>
     Enables display of lining diagonal fractions (OpenType feature: <code>frac</code>). 
     <div class="featex"><img alt="diagonal fraction example" src="frac.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-numeric <numeric-fraction-values>" data-dfn-type="value" data-export id="valdef-font-variant-numeric-numeric-fraction-values-stacked-fractions">stacked-fractions<a class="self-link" href="#valdef-font-variant-numeric-numeric-fraction-values-stacked-fractions"></a></dfn> 
    <dd>
     Enables display of lining stacked fractions (OpenType feature: <code>afrc</code>). 
     <div class="featex"><img alt="stacked fraction example" src="afrc.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-ordinal">ordinal</dfn> 
    <dd>
     Enables display of letter forms used with ordinal numbers (OpenType feature: <code>ordn</code>). 
     <div class="featex"><img alt="ordinals example" src="ordinals.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-numeric" data-dfn-type="value" data-export id="valdef-font-variant-numeric-slashed-zero">slashed-zero<a class="self-link" href="#valdef-font-variant-numeric-slashed-zero"></a></dfn> 
    <dd>
     Enables display of slashed zeros (OpenType feature: <code>zero</code>). 
     <div class="featex"><img alt="slashed zero example" src="zero.png"></div>
   </dl>
   <div class="example" id="ordinal-example">
    <a class="self-link" href="#ordinal-example"></a> In the case of <a class="css" data-link-type="maybe" href="#valdef-font-variant-numeric-ordinal" id="ref-for-valdef-font-variant-numeric-ordinal">ordinal</a>, although ordinal forms
	are often the same as superscript forms, they are marked up
	differently.
	For superscripts, the variant property is only applied to the sub-element containing the superscript: 
<pre>sup { font-variant-position: super; }
x&lt;sup>2&lt;/sup>
</pre>
    <p>For ordinals, the variant property is applied to the entire ordinal number rather than
	just to the suffix (or to the containing paragraph):</p>
<pre>.ordinal { font-variant-numeric: ordinal; }
&lt;span class="ordinal">17th&lt;/span>
</pre>
    <p>In this case only the "th" will appear in ordinal form, the
	digits will remain unchanged. Depending upon the typographic
	traditions used in a given language, ordinal forms may differ from
	superscript forms. In Italian, for example, ordinal forms sometimes
	include an underline in the ordinal design.</p>
   </div>
   <div class="example" id="steak-marinade">
    <a class="self-link" href="#steak-marinade"></a> A simple flank steak marinade recipe, rendered with automatic fractions and old-style numerals: 
<pre>.amount { font-variant-numeric: oldstyle-nums diagonal-fractions; }

&lt;h4>Steak marinade:&lt;/h4>
&lt;ul>
  &lt;li>&lt;span class="amount">2&lt;/span> tbsp olive oil&lt;/li>
  &lt;li>&lt;span class="amount">1&lt;/span> tbsp lemon juice&lt;/li>
  &lt;li>&lt;span class="amount">1&lt;/span> tbsp soy sauce&lt;/li>
  &lt;li>&lt;span class="amount">1 1/2&lt;/span> tbsp dry minced onion&lt;/li>
  &lt;li>&lt;span class="amount">2 1/2&lt;/span> tsp italian seasoning&lt;/li>
  &lt;li>Salt &amp;amp; pepper&lt;/li>
&lt;/ul>

&lt;p>Mix the meat with the marinade and let it sit covered in the refrigerator
for a few hours or overnight.&lt;/p>
</pre>
    <p>Note that the fraction feature is only applied to values not the entire paragraph.
	Fonts often implement this feature using contextual rules based on the use of the slash ('/')
	character.  As such, it’s not suitable for use as a paragraph-level style.</p>
   </div>
   <h3 class="heading settled" data-level="6.8" id="font-variant-alternates-prop"><span class="secno">6.8. </span><span class="content">Alternates and swashes: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates">font-variant-alternates</a> property</span><a class="self-link" href="#font-variant-alternates-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-alternates">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-alternates">font-variant-alternates</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑦">|</a> [
stylistic(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name⑥">&lt;feature-value-name></a>) <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any②⑦">||</a> historical-forms <span id="ref-for-comb-any②⑧">||</span> styleset(<span class="production" id="ref-for-typedef-feature-value-name⑦">&lt;feature-value-name></span><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑦">#</a>) <span id="ref-for-comb-any②⑨">||</span> character-variant(<span class="production" id="ref-for-typedef-feature-value-name⑧">&lt;feature-value-name></span><span id="ref-for-mult-comma⑧">#</span>) <span id="ref-for-comb-any③⓪">||</span> swash(<span class="production" id="ref-for-typedef-feature-value-name⑨">&lt;feature-value-name></span>) <span id="ref-for-comb-any③①">||</span> ornaments(<span class="production" id="ref-for-typedef-feature-value-name①⓪">&lt;feature-value-name></span>) <span id="ref-for-comb-any③②">||</span> annotation(<span class="production" id="ref-for-typedef-feature-value-name①①">&lt;feature-value-name></span>)
]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>For any given character, fonts can provide a variety of alternate
glyphs in addition to the default glyph for that character.  This
property provides control over the selection of these alternate
glyphs.</p>
   <p>For many of the property values listed below, several different
alternate glyphs are available.  How many alternates are available
and what they represent is font-specific, so these are each marked <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="font-specific">font specific</dfn> in the value definitions below.  Because the nature
of these alternates is font-specific, the <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values">@font-feature-values</a> rule is used to define values for a
specific font family or set of families that associate a font-specific
numeric <a class="production css" data-link-type="type" href="#typedef-feature-index" id="ref-for-typedef-feature-index">&lt;feature-index></a> with a custom <a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name①②">&lt;feature-value-name></a>, which is then used in this
property to select specific alternates:</p>
<pre>@font-feature-values Noble Script { @swash { swishy: 1; flowing: 2; } }

p {
  font-family: Noble Script;
  font-variant-alternates: swash(flowing); /* use swash alternate #2 */
}
</pre>
   <p>When a particular <a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name①③">&lt;feature-value-name></a> has not
been defined for a given family or for a particular feature type, the
computed value must be the same as if it had been defined.  However,
property values that contain these undefined <span class="production" id="ref-for-typedef-feature-value-name①④">&lt;feature-value-name></span> identifiers must be ignored when choosing glyphs.</p>
<pre>/* these two style rules are effectively the same */
p { font-variant-alternates: swash(unknown-value); } /* not a defined value, ignored */
p { font-variant-alternates: normal; }
</pre>
   <p>This allows values to be defined and used for a given set of font
families but ignored if fallback occurs, since the font family name
would be different. If a given value is outside the range supported by
a given font, the value is ignored.  These values never apply to
generic font families.</p>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="valdef-font-variant-alternates-normal">normal<a class="self-link" href="#valdef-font-variant-alternates-normal"></a></dfn> 
    <dd>None of the features listed below are enabled. 
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export id="valdef-font-variant-alternates-historical-forms">historical-forms<a class="self-link" href="#valdef-font-variant-alternates-historical-forms"></a></dfn> 
    <dd>
     Enables display of historical forms (OpenType feature: <code>hist</code>). 
     <div class="featex"><img alt="historical form example" src="hist.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export data-lt="stylistic()" id="valdef-font-variant-alternates-stylistic">stylistic(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name①⑤">&lt;feature-value-name></a>)<a class="self-link" href="#valdef-font-variant-alternates-stylistic"></a></dfn> 
    <dd>
     Enables display of stylistic alternates (<a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific">font specific</a>, OpenType feature: <code>salt <a class="production css" data-link-type="type" href="#typedef-feature-index" id="ref-for-typedef-feature-index①">&lt;feature-index></a></code>). 
     <div class="featex"><img alt="stylistic alternate example" src="salt.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export data-lt="styleset()" id="valdef-font-variant-alternates-styleset">styleset(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name①⑥">&lt;feature-value-name></a>#)</dfn> 
    <dd>
     Enables display with stylistic sets (<a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific①">font specific</a>, OpenType feature: <code>ss<a class="production css" data-link-type="type" href="#typedef-feature-index" id="ref-for-typedef-feature-index②">&lt;feature-index></a></code> OpenType currently defines <code>ss01</code> through <code>ss20</code>). 
     <div class="featex"><img alt="styleset example" src="ssnn.png"></div>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export data-lt="character-variant()" id="valdef-font-variant-alternates-character-variant">character-variant(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name①⑦">&lt;feature-value-name></a>#)</dfn> 
    <dd>Enables display of specific character variants (<a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific②">font specific</a>, OpenType feature: <code>cv<a class="production css" data-link-type="type" href="#typedef-feature-index" id="ref-for-typedef-feature-index③">&lt;feature-index></a></code> OpenType currently defines <code>cv01</code> through <code>cv99</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export data-lt="swash()" id="valdef-font-variant-alternates-swash">swash(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name①⑧">&lt;feature-value-name></a>)</dfn> 
    <dd>
     Enables display of swash glyphs (<a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific③">font specific</a>, OpenType feature: <code>swsh <a class="production css" data-link-type="type" href="#typedef-feature-index" id="ref-for-typedef-feature-index④">&lt;feature-index></a>, cswh <span class="production" id="ref-for-typedef-feature-index⑤">&lt;feature-index></span></code>). 
     <div class="featex"><img alt="swash example" src="swsh.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export data-lt="ornaments()" id="valdef-font-variant-alternates-ornaments">ornaments(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name①⑨">&lt;feature-value-name></a>)<a class="self-link" href="#valdef-font-variant-alternates-ornaments"></a></dfn> 
    <dd>
     Enables replacement of default glyphs with ornaments, if provided in the font (<a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific④">font specific</a>, OpenType feature: <code>ornm <a class="production css" data-link-type="type" href="#typedef-feature-index" id="ref-for-typedef-feature-index⑥">&lt;feature-index></a></code>).
		Some fonts may offer ornament glyphs as alternates for a wide collection of characters; however, displaying arbitrary
		characters (e.g., alphanumerics) as ornaments is poor practice as it distorts the semantics of the data. Font designers
		are encouraged to encode all ornaments (except those explicitly encoded in the Unicode Dingbats blocks, etc.) as
		alternates for the bullet character (U+2022) to allow authors to select the desired glyph using <span class="css">ornaments</span>. 
     <div class="featex"><img alt="ornaments example" src="ornm.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-alternates" data-dfn-type="value" data-export data-lt="annotation()" id="valdef-font-variant-alternates-annotation">annotation(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name②⓪">&lt;feature-value-name></a>)<a class="self-link" href="#valdef-font-variant-alternates-annotation"></a></dfn> 
    <dd>
     Enables display of alternate annotation forms (<a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific⑤">font specific</a>, OpenType feature: <code>nalt <a class="production css" data-link-type="type" href="#typedef-feature-index" id="ref-for-typedef-feature-index⑦">&lt;feature-index></a></code>). 
     <div class="featex"><img alt="alternate annotation form example" src="nalt.png"></div>
   </dl>
   <h3 class="heading settled" data-level="6.9" id="font-feature-values"><span class="secno">6.9. </span><span class="content">Defining font specific alternates: the <dfn class="dfn-paneled css" data-dfn-type="at-rule" data-export id="at-ruledef-font-feature-values">@font-feature-values</dfn> rule</span><a class="self-link" href="#font-feature-values"></a></h3>
   <p>Several of the possible values of <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates①">font-variant-alternates</a> listed
above are labeled as <a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific⑥">font specific</a>.  For these features fonts may define
not just a single glyph but a set of alternate glyphs with an index to
select a given alternate.  Since these are font family specific, the <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values①">@font-feature-values</a> rule is used to define named values for these indices
for a given family.</p>
   <p class="note" role="note"><span>Note:</span> See <a href="#om-fontfeaturevalues">§ 8.2 The CSSFontFeatureValuesRule interface</a> for a
description of the interfaces used to modify these rules via the CSS
Object Model.</p>
   <div class="example" id="example-cbc40bf9">
    <a class="self-link" href="#example-cbc40bf9"></a> In the case of the swash Q in the example shown above, the swash could
	be specified using these style rules: 
<pre>@font-feature-values Jupiter Sans {
  @swash {
    delicate: 1;
    flowing: 2;
  }
}

h2 { font-family: Jupiter Sans, sans-serif; }

/* show the second swash variant in h2 headings */
h2:first-letter { font-variant-alternates: swash(flowing); }

&lt;h2>Quick&lt;/h2>
</pre>
    <p>When Jupiter Sans is present, the second alternate swash alternate will
	be displayed. When not present, no swash character will be shown, since the
	specific named value "flowing" is only defined for the Jupiter Sans family.
	The @-mark indicates the name of the property value for which a named value
	can be used.  The name "flowing" is chosen by the author.  The index that
	represents ech alternate is defined within a given font’s data.</p>
   </div>
   <h4 class="heading settled" data-level="6.9.1" id="basic-syntax"><span class="secno">6.9.1. </span><span class="content">Basic syntax</span><a class="self-link" href="#basic-syntax"></a></h4>
   <p>An <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values②">@font-feature-values</a> rule is composed of a list of
font families followed by a block containing individual <a data-link-type="dfn" href="#feature_value_block" id="ref-for-feature_value_block">feature value blocks</a> that take the
form of @-rules.  Each block defines a set of named values for a specific font feature
when a given set of font families is used. Effectively, they define a mapping
of ⟨family, feature, ident⟩ → ⟨values⟩
where ⟨values⟩ are the numeric indices used for specific
features defined for a given font.</p>
   <p>In terms of the grammar, this specification defines the following productions:</p>
<pre><dfn data-dfn-type="dfn" data-noexport id="font_feature_values_rule">font_feature_values_rule<a class="self-link" href="#font_feature_values_rule"></a></dfn>  : <a data-link-type="dfn" href="#font_feature_values_sym" id="ref-for-font_feature_values_sym">FONT_FEATURE_VALUES_SYM</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a data-link-type="dfn" href="#font_family_name_list" id="ref-for-font_family_name_list">font_family_name_list</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>*
    '{' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a data-link-type="dfn" href="#feature_value_block" id="ref-for-feature_value_block①">feature_value_block</a>? [ <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a data-link-type="dfn" href="#feature_value_block" id="ref-for-feature_value_block②">feature_value_block</a>? ]* '}' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>*
  ;

<dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="font_family_name_list">font_family_name_list</dfn>
  : <a data-link-type="dfn" href="#font_family_name" id="ref-for-font_family_name">font_family_name</a> [ <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* ',' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a data-link-type="dfn" href="#font_family_name" id="ref-for-font_family_name①">font_family_name</a> ]*
  ;

<dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="font_family_name">font_family_name</dfn>
  : <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"></a><a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#string" id="ref-for-string">STRING</a> | [ <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"></a><a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#css-identifier" id="ref-for-css-identifier">IDENT</a> [ <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"></a><a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#css-identifier" id="ref-for-css-identifier①">IDENT</a> ]* ]
  ;

<dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="feature_value_block">feature_value_block</dfn>
  : <a data-link-type="dfn" href="#feature_type" id="ref-for-feature_type">feature_type</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>*
    '{' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a data-link-type="dfn" href="#feature_value_definition" id="ref-for-feature_value_definition">feature_value_definition</a>? [ <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* ';' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a data-link-type="dfn" href="#feature_value_definition" id="ref-for-feature_value_definition①">feature_value_definition</a>? ]* '}' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>*
  ;

<dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="feature_type">feature_type</dfn>:
  <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"></a><a data-link-type="dfn">ATKEYWORD</a>
  ;

<dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="feature_value_definition">feature_value_definition</dfn>
  : <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"></a><a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#css-identifier" id="ref-for-css-identifier②">IDENT</a> <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* ':' <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"></a><a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#number" id="ref-for-number">NUMBER</a> [ <a href="https://www.w3.org/TR/CSS21/grammar.html#scanner"></a><a data-link-type="dfn">S</a>* <a href="https://www.w3.org/TR/CSS21/syndata.html#tokenization"></a><a data-link-type="dfn" href="https://drafts.csswg.org/css-values-4/#number" id="ref-for-number①">NUMBER</a> ]*
  ;
</pre>
   <p>The following new token is introduced:</p>
<pre>@{F}{O}{N}{T}{-}{F}{E}{A}{T}{U}{R}{E}{-}{V}{A}{L}{U}{E}{S}   {return <dfn class="dfn-paneled" data-dfn-type="dfn" data-noexport id="font_feature_values_sym">FONT_FEATURE_VALUES_SYM</dfn>;}
</pre>
   <p><a data-link-type="dfn" href="#feature_value_block" id="ref-for-feature_value_block③">Feature value blocks</a> are handled as <a href="https://www.w3.org/TR/CSS2/syndata.html#at-rules">at-rules</a>,
they consist of everything up to the next block or
semi-colon, whichever comes first.</p>
   <p>The <a data-link-type="dfn" href="#font_family_name_list" id="ref-for-font_family_name_list①">font family list</a> is a comma-delimited list of <a data-link-type="dfn" href="#font_family_name" id="ref-for-font_family_name②">font family names</a> that match the definition of <var>&lt;family-name></var> for the <a class="property" data-link-type="propdesc" href="#propdef-font-family" id="ref-for-propdef-font-family①③">font-family</a> property.
This means that only named font families are allowed, rules that
include generic or system fonts in the list of font families are
syntax errors. However, if a user agent defines a generic font to be a
specific named font (e.g. Helvetica), the settings associated with
that family name will be used.  If syntax errors occur within the font
family list, the entire rule must be ignored.</p>
   <p>Within <a data-link-type="dfn" href="#feature_value_block" id="ref-for-feature_value_block④">feature value blocks</a>,
the <a data-link-type="dfn" href="#feature_type" id="ref-for-feature_type①">feature type</a> is "@"" followed by the
name of one of the <a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific⑦">font specific</a> property values
of <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates②">font-variant-alternates</a> (e.g. <code>swash</code>). The
identifiers used within feature value definitions define <dfn class="dfn-paneled css" data-dfn-type="type" data-export id="typedef-feature-value-name">&lt;feature-value-name></dfn>s
and follow the rules of
CSS user identifiers and are case-sensitive. They are unique only for
a given set of font families and <span id="ref-for-feature_type②">feature type</span>.
The same identifier used with a different <span id="ref-for-feature_type③">feature type</span> is treated as a separate and distinct value.  If the same identifier is defined
mulitple times for a given <span id="ref-for-feature_type④">feature type</span> and font family,
the last defined value is used. Values associated
with a given identifier are <dfn class="dfn-paneled css" data-dfn-type="type" data-export id="typedef-feature-index">&lt;feature-index></dfn>es and are limited to integer values 0 or greater.</p>
   <p>When syntax errors occur within a <a data-link-type="dfn" href="#feature_value_definition" id="ref-for-feature_value_definition②">feature value
definition</a>, such as invalid identifiers or values, the entire <span id="ref-for-feature_value_definition③">feature value
definition</span> must be omitted, just as syntax errors in
style declarations are handled.  When the <a data-link-type="dfn" href="#feature_type" id="ref-for-feature_type⑤">feature type</a> is invalid, the entire associated <a data-link-type="dfn" href="#feature_value_block" id="ref-for-feature_value_block⑤">feature value block</a> must be ignored.</p>
   <div class="example" id="example-a4e868e2">
    <a class="self-link" href="#example-a4e868e2"></a> Rules that are equivalent given syntax error handling: 
<pre>@font-feature-values Bongo {
  @swash { ornate: 1; }
  annotation { boxed: 4; } /* should be @annotation! */
  @swash { double-loops: 1; flowing: -1; } /* negative value */
  @ornaments ; /* incomplete definition */
  @styleset { double-W: 14; sharp-terminals: 16 1 } /* missing ; */
  <a href="http://www.angryalien.com/0504/shiningbunnies.html" style="text-decoration: none; border: none;">redrum</a>  /* random editing mistake */
}
</pre>
    <p>The example above is equivalent to:</p>
<pre>@font-feature-values Bongo {
  @swash { ornate: 1; }
  @swash { double-loops: 1; }
  @styleset { double-W: 14; sharp-terminals: 16 1; }
}
</pre>
   </div>
   <p>If multiple <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values③">@font-feature-values</a> rules are defined for
a given family, the resulting values definitions are the union of the
definitions contained within these rules. This allows a set of named
values to be defined for a given font family globally for a site and
specific additions made per-page.</p>
   <div class="example" id="example-a442ca99">
    <a class="self-link" href="#example-a442ca99"></a> Using both site-wide and per-page feature values: 
<pre>site.css:

  @font-feature-values Mercury Serif {
    @styleset {
      stacked-g: 3; /* "two-storey" versions of g, a */
      stacked-a: 4;
    }
  }

page.css:

  @font-feature-values Mercury Serif {
    @styleset {
      geometric-m: 7; /* alternate version of m */
    }
  }

  body {
    font-family: Mercury Serif, serif;

    /* enable both the use of stacked g and alternate m */
    font-variant-alternates: styleset(stacked-g, geometric-m);
  }
</pre>
   </div>
   <div class="example" id="example-2fc80dc0">
    <a class="self-link" href="#example-2fc80dc0"></a> Using a commonly named value allows authors to use a single style rule
	to cover a set of fonts for which the underlying selector is different for
	each font. If either font in the example below is found, a circled number
	glyph will be used: 
<pre>@font-feature-values Taisho Gothic {
  @annotation { boxed: 1; circled: 4; }
}

@font-feature-values Otaru Kisa {
  @annotation { circled: 1; black-boxed: 3; }
}

h3.title {
  /* circled form defined for both fonts */
  font-family: Taisho Gothic, Otaru Kisa;
  font-variant: annotation(circled);
}
</pre>
   </div>
   <h4 class="heading settled" data-level="6.9.2" id="multi-valued-features"><span class="secno">6.9.2. </span><span class="content">Multi-valued feature value definitions</span><a class="self-link" href="#multi-valued-features"></a></h4>
   <p>Most <a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific⑧">font specific</a> <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates③">font-variant-alternates</a> property
values take a single value (e.g. <a class="css" data-link-type="maybe" href="#valdef-font-variant-alternates-swash" id="ref-for-valdef-font-variant-alternates-swash">swash()</a>). The <a class="css" data-link-type="maybe" href="#valdef-font-variant-alternates-character-variant" id="ref-for-valdef-font-variant-alternates-character-variant">character-variant()</a> property value allows two values and <a class="css" data-link-type="maybe" href="#valdef-font-variant-alternates-styleset" id="ref-for-valdef-font-variant-alternates-styleset">styleset()</a> allows an unlimited
number.</p>
   <p>For the styleset property value, multiple values indicate the style
sets to be enabled.  Values between 1 and 99 enable OpenType features <code>ss01</code> through <code>ss99</code>.
However, the OpenType standard only officially defines <code>ss01</code> through <code>ss20</code>.
For OpenType fonts, values greater than 99 or equal to 0 do not
generate a syntax error when parsed but enable no OpenType features.</p>
<pre>@font-feature-values Mars Serif {
  @styleset {
    alt-g: 1;        /* implies ss01 = 1 */
    curly-quotes: 3; /* implies ss03 = 1 */
    code: 4 5;       /* implies ss04 = 1, ss05 = 1 */
  }

  @styleset {
    dumb: 125;        /* >99, ignored */
  }

  @swash {
    swishy: 3 5;     /* more than 1 value for swash, syntax error */
  }
}

p.codeblock {
  /* implies ss03 = 1, ss04 = 1, ss05 = 1 */
  font-variant-alternates: styleset(curly-quotes, code);
}
</pre>
   <p>For character-variant, a single value between 1 and 99 indicates
the enabling of OpenType feature <code>cv01</code> through <code>cv99</code>. For OpenType fonts, values greater than
99 or equal to 0 are ignored but do not generate a syntax error when parsed
but enable no OpenType features. When two values are listed, the first
value indicates the feature used and the second the value passed for
that feature.  If more than two values are assigned to a given name, a
syntax error occurs and the entire <a data-link-type="dfn" href="#feature_value_definition" id="ref-for-feature_value_definition④">feature value definition</a> is
ignored.</p>
<pre>@font-feature-values MM Greek {
  @character-variant { alpha-2: 1 2; }   /* implies cv01 = 2 */
  @character-variant { beta-3: 2 3; }    /* implies cv02 = 3 */
  @character-variant { epsilon: 5 3 6; } /* more than 2 values, syntax error, definition ignored */
  @character-variant { gamma: 12; }      /* implies cv12 = 1 */
  @character-variant { zeta:   20 3; }   /* implies cv20 = 3 */
  @character-variant { zeta-2: 20 2; }   /* implies cv20 = 2 */
  @character-variant { silly: 105; }     /* >99, ignored */
  @character-variant { dumb: 323 3; }    /* >99, ignored */
}

#title {
  /* use the third alternate beta, first alternate gamma */
  font-variant-alternates: character-variant(beta-3, gamma);
}

p {
  /* zeta-2 follows zeta, implies cv20 = 2  */
  font-variant-alternates: character-variant(zeta, zeta-2);
}

.special {
  /* zeta follows zeta-2, implies cv20 = 3  */
  font-variant-alternates: character-variant(zeta-2, zeta);
}
</pre>
   <div class="example" id="example-580d1e81">
    <a class="self-link" href="#example-580d1e81"></a> 
    <div class="figure">
     <img alt="Matching text on Byzantine seals using character variants" src="byzantineseal.png">
     <p class="caption">Byzantine seal text displayed with character variants</p>
    </div>
    <p>In the figure above, the text in red is rendered using a font containing
	character variants that mimic the character forms found on a Byzantine seal
	from the 8th century A.D.  Two lines below is the same text displayed in
	a font without variants.  Note the two variants for U and N used on the
	seal.</p>
<pre>@font-feature-values Athena Ruby {
  @character-variant {
    leo-B: 2 1;
    leo-M: 13 3;
    leo-alt-N: 14 1;
    leo-N: 14 2;
    leo-T: 20 1;
    leo-U: 21 2;
    leo-alt-U: 21 4;
  }
}

p {
  font-variant: discretionary-ligatures,
                character-variant(leo-B, leo-M, leo-N, leo-T, leo-U);
}

span.alt-N {
  font-variant-alternates: character-variant(leo-alt-N);
}

span.alt-U {
  font-variant-alternates: character-variant(leo-alt-U);
}

&lt;p>ENO....UP͞RSTU&lt;span class="alt-U">U&lt;/span>͞&lt;span class="alt-U">U&lt;/span>ΚΑΙTỤẠG̣IUPNS&lt;/p>

&lt;p>LEON|ΚΑΙCONSTA|NTI&lt;span class="alt-N">N&lt;/span>OS..|STOIBAṢ.|LIṢROM|AIO&lt;span class="alt-N">N&lt;/span>&lt;/p>
</pre>
   </div>
   <h3 class="heading settled" data-level="6.10" id="font-variant-east-asian-prop"><span class="secno">6.10. </span><span class="content">East Asian text rendering: the <a class="property" data-link-type="propdesc" href="#propdef-font-variant-east-asian" id="ref-for-propdef-font-variant-east-asian">font-variant-east-asian</a> property</span><a class="self-link" href="#font-variant-east-asian-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant-east-asian">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-variant-east-asian">font-variant-east-asian</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑧">|</a> [ <a class="production css" data-link-type="type" href="#typedef-east-asian-variant-values" id="ref-for-typedef-east-asian-variant-values①">&lt;east-asian-variant-values></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any③③">||</a> <a class="production css" data-link-type="type" href="#typedef-east-asian-width-values" id="ref-for-typedef-east-asian-width-values①">&lt;east-asian-width-values></a> <span id="ref-for-comb-any③④">||</span> ruby ]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Allows control of glyph substitution and sizing in East Asian text.</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-east-asian-variant-values">&lt;east-asian-variant-values></dfn> = jis78 <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one⑨⑨">|</a> jis83 <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪⓪">|</a> jis90 <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪①">|</a> jis04 <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪②">|</a> simplified <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪③">|</a> traditional
<dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-east-asian-width-values">&lt;east-asian-width-values></dfn>   = full-width <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪④">|</a> proportional-width
</pre>
   <p>Individual values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-normal">normal<a class="self-link" href="#valdef-font-variant-east-asian-normal"></a></dfn> 
    <dd>None of the features listed below are enabled. 
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian <east-asian-variant-values>" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-east-asian-variant-values-jis78">jis78<a class="self-link" href="#valdef-font-variant-east-asian-east-asian-variant-values-jis78"></a></dfn> 
    <dd>
     Enables rendering of JIS78 forms (OpenType feature: <code>jp78</code>). 
     <div class="featex"><img alt="JIS78 form example" src="jp78.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian <east-asian-variant-values>" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-east-asian-variant-values-jis83">jis83<a class="self-link" href="#valdef-font-variant-east-asian-east-asian-variant-values-jis83"></a></dfn> 
    <dd>Enables rendering of JIS83 forms (OpenType feature: <code>jp83</code>). 
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian <east-asian-variant-values>" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-east-asian-variant-values-jis90">jis90<a class="self-link" href="#valdef-font-variant-east-asian-east-asian-variant-values-jis90"></a></dfn> 
    <dd>Enables rendering of JIS90 forms (OpenType feature: <code>jp90</code>). 
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian <east-asian-variant-values>" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-east-asian-variant-values-jis04">jis04<a class="self-link" href="#valdef-font-variant-east-asian-east-asian-variant-values-jis04"></a></dfn> 
    <dd>
     Enables rendering of JIS2004 forms (OpenType feature: <code>jp04</code>). 
     <p>The various JIS variants reflect the glyph forms defined in different
		Japanese national standards. Fonts generally include glyphs defined by the
		most recent national standard but it’s sometimes necessary to use older
		variants, to match signage for example.</p>
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-east-asian <east-asian-variant-values>" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-east-asian-variant-values-simplified">simplified</dfn> 
    <dd>Enables rendering of simplified forms (OpenType feature: <code>smpl</code>). 
    <dt><dfn class="dfn-paneled css" data-dfn-for="font-variant-east-asian <east-asian-variant-values>" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-east-asian-variant-values-traditional">traditional</dfn> 
    <dd>
     Enables rendering of traditional forms (OpenType feature: <code>trad</code>). 
     <p>The <a class="css" data-link-type="maybe" href="#valdef-font-variant-east-asian-east-asian-variant-values-simplified" id="ref-for-valdef-font-variant-east-asian-east-asian-variant-values-simplified">simplified</a> and <a class="css" data-link-type="maybe" href="#valdef-font-variant-east-asian-east-asian-variant-values-traditional" id="ref-for-valdef-font-variant-east-asian-east-asian-variant-values-traditional">traditional</a> values allow control over the
		glyph forms for characters which have been simplified over time but
		for which the older, traditional form is still used in some
		contexts.  The exact set of characters and glyph forms will vary
		to some degree by context for which a given font was designed.</p>
     <div class="featex"><img alt="tradtional form example" src="trad.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian <east-asian-width-values>" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-east-asian-width-values-full-width">full-width<a class="self-link" href="#valdef-font-variant-east-asian-east-asian-width-values-full-width"></a></dfn> 
    <dd>Enables rendering of full-width variants (OpenType feature: <code>fwid</code>). 
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian <east-asian-width-values>" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-east-asian-width-values-proportional-width">proportional-width<a class="self-link" href="#valdef-font-variant-east-asian-east-asian-width-values-proportional-width"></a></dfn> 
    <dd>
     Enables rendering of proportionally-spaced variants (OpenType feature: <code>pwid</code>). 
     <div class="featex"><img alt="proportionally spaced Japanese example" src="pwid.png"></div>
    <dt><dfn class="css" data-dfn-for="font-variant-east-asian" data-dfn-type="value" data-export id="valdef-font-variant-east-asian-ruby">ruby<a class="self-link" href="#valdef-font-variant-east-asian-ruby"></a></dfn> 
    <dd>
     Enables display of ruby variant glyphs (OpenType feature: <code>ruby</code>).
		Since ruby text is generally smaller than the associated body
		text, font designers can design special glyphs for use with ruby
		that are more readable than scaled down versions of the default
		glyphs.  Only glyph selection is affected, there is no
		associated font scaling or other change that affects line layout.
		The red ruby text below is shown with default glyphs (top) and
		with ruby variant glyphs (bottom).  Note the slight difference
		in stroke thickness. 
     <div class="featex"><img alt="ruby variant example" src="rubyshinkansen.png"></div>
   </dl>
   <h3 class="heading settled" data-level="6.11" id="font-variant-prop"><span class="secno">6.11. </span><span class="content">Overall shorthand for font rendering: the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant①①">font-variant</a> property</span><a class="self-link" href="#font-variant-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-variant">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="css" data-dfn-type="property" data-export id="propdef-font-variant">font-variant<a class="self-link" href="#propdef-font-variant"></a></dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①⓪⑤">|</a> none <span id="ref-for-comb-one①⓪⑥">|</span> [ <a class="production css" data-link-type="type" href="#typedef-common-lig-values" id="ref-for-typedef-common-lig-values②">&lt;common-lig-values></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-any" id="ref-for-comb-any③⑤">||</a> <a class="production css" data-link-type="type" href="#typedef-discretionary-lig-values" id="ref-for-typedef-discretionary-lig-values②">&lt;discretionary-lig-values></a> <span id="ref-for-comb-any③⑥">||</span> <a class="production css" data-link-type="type" href="#typedef-historical-lig-values" id="ref-for-typedef-historical-lig-values②">&lt;historical-lig-values></a> <span id="ref-for-comb-any③⑦">||</span> <a class="production css" data-link-type="type" href="#typedef-contextual-alt-values" id="ref-for-typedef-contextual-alt-values②">&lt;contextual-alt-values></a> <span id="ref-for-comb-any③⑧">||</span> stylistic(<a class="production css" data-link-type="type" href="#typedef-feature-value-name" id="ref-for-typedef-feature-value-name②①">&lt;feature-value-name></a>) <span id="ref-for-comb-any③⑨">||</span> historical-forms <span id="ref-for-comb-any④⓪">||</span> styleset(<span class="production" id="ref-for-typedef-feature-value-name②②">&lt;feature-value-name></span><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma⑨">#</a>) <span id="ref-for-comb-any④①">||</span> character-variant(<span class="production" id="ref-for-typedef-feature-value-name②③">&lt;feature-value-name></span><span id="ref-for-mult-comma①⓪">#</span>) <span id="ref-for-comb-any④②">||</span> swash(<span class="production" id="ref-for-typedef-feature-value-name②④">&lt;feature-value-name></span>) <span id="ref-for-comb-any④③">||</span> ornaments(<span class="production" id="ref-for-typedef-feature-value-name②⑤">&lt;feature-value-name></span>) <span id="ref-for-comb-any④④">||</span> annotation(<span class="production" id="ref-for-typedef-feature-value-name②⑥">&lt;feature-value-name></span>) <span id="ref-for-comb-any④⑤">||</span> [ small-caps <span id="ref-for-comb-one①⓪⑦">|</span> all-small-caps <span id="ref-for-comb-one①⓪⑧">|</span> petite-caps <span id="ref-for-comb-one①⓪⑨">|</span> all-petite-caps <span id="ref-for-comb-one①①⓪">|</span> unicase <span id="ref-for-comb-one①①①">|</span> titling-caps ] <span id="ref-for-comb-any④⑥">||</span> <a class="production css" data-link-type="type" href="#typedef-numeric-figure-values" id="ref-for-typedef-numeric-figure-values②">&lt;numeric-figure-values></a> <span id="ref-for-comb-any④⑦">||</span> <a class="production css" data-link-type="type" href="#typedef-numeric-spacing-values" id="ref-for-typedef-numeric-spacing-values②">&lt;numeric-spacing-values></a> <span id="ref-for-comb-any④⑧">||</span> <a class="production css" data-link-type="type" href="#typedef-numeric-fraction-values" id="ref-for-typedef-numeric-fraction-values②">&lt;numeric-fraction-values></a> <span id="ref-for-comb-any④⑨">||</span> ordinal <span id="ref-for-comb-any⑤⓪">||</span> slashed-zero <span id="ref-for-comb-any⑤①">||</span> <a class="production css" data-link-type="type" href="#typedef-east-asian-variant-values" id="ref-for-typedef-east-asian-variant-values②">&lt;east-asian-variant-values></a> <span id="ref-for-comb-any⑤②">||</span> <a class="production css" data-link-type="type" href="#typedef-east-asian-width-values" id="ref-for-typedef-east-asian-width-values②">&lt;east-asian-width-values></a> <span id="ref-for-comb-any⑤③">||</span> ruby
]
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>see individual properties
     <tr>
      <th>Applies to:
      <td>see individual properties
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>see individual properties
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>see individual properties
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>see individual properties
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>see individual properties
     <tr>
      <th>Canonical order:
      <td>per grammar
   </table>
   <p>The <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant①②">font-variant</a> property is a shorthand for all <a class="property" data-link-type="propdesc">font-variant-*</a> subproperties.
The value <dfn class="dfn-paneled css" data-dfn-for="font-variant" data-dfn-type="value" data-export id="valdef-font-variant-normal">normal</dfn> resets all subproperties of <span class="property" id="ref-for-descdef-font-face-font-variant①③">font-variant</span> to their inital
value. The <dfn class="css" data-dfn-for="font-variant" data-dfn-type="value" data-export id="valdef-font-variant-none">none<a class="self-link" href="#valdef-font-variant-none"></a></dfn> value sets <a class="property" data-link-type="propdesc" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures①">font-variant-ligatures</a> to <a class="css" data-link-type="maybe" href="#valdef-font-variant-ligatures-none" id="ref-for-valdef-font-variant-ligatures-none①">none</a> and resets all other
font feature properties to their initial value.  Like other shorthands,
using <span class="property" id="ref-for-descdef-font-face-font-variant①④">font-variant</span> resets unspecified <span class="property" id="ref-for-descdef-font-face-font-variant①⑤">font-variant</span> subproperties to their initial
values.  It does not reset the values of either <a class="property" data-link-type="propdesc" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override③">font-language-override</a> or <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings①">font-feature-settings</a>.</p>
   <h3 class="heading settled" data-level="6.12" id="font-feature-settings-prop"><span class="secno">6.12. </span><span class="content">Low-level font feature settings control: the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings②">font-feature-settings</a> property</span><a class="self-link" href="#font-feature-settings-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-feature-settings">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="css" data-dfn-type="property" data-export id="propdef-font-feature-settings">font-feature-settings<a class="self-link" href="#propdef-font-feature-settings"></a></dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①②">|</a> <a class="production css" data-link-type="type" href="#typedef-feature-tag-value" id="ref-for-typedef-feature-tag-value①">&lt;feature-tag-value></a><a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-comma" id="ref-for-mult-comma①①">#</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>This property provides low-level control over OpenType font
features. It is intended as a way of providing access to font features
that are not widely used but are needed for a particular use case.</p>
   <p>Authors should generally use <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant①⑥">font-variant</a> and its related subproperties whenever possible and only use this
property for special cases where its use is the only way of accessing
a particular infrequently used font feature.</p>
<pre>/* enable small caps and use second swash alternate */font-feature-settings: "smcp", "swsh" 2;</pre>
   <p>A value of <dfn class="css" data-dfn-for="font-feature-settings" data-dfn-type="value" data-export id="valdef-font-feature-settings-normal">normal<a class="self-link" href="#valdef-font-feature-settings-normal"></a></dfn> means that no
change in glyph selection or positioning occurs due to this property.</p>
   <p>Feature tag values have the following syntax:</p>
<pre class="prod"><dfn class="dfn-paneled" data-dfn-type="type" data-export id="typedef-feature-tag-value">&lt;feature-tag-value></dfn> = <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value①">&lt;string></a> [ <a class="production" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value">&lt;integer></a> <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①③">|</a> on <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①④">|</a> off ]<a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#mult-opt" id="ref-for-mult-opt③">?</a></pre>
   <p>The <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value②">&lt;string></a> is a case-sensitive OpenType feature tag. As
specified in the OpenType specification, feature tags contain four
ASCII characters. Tag strings longer or shorter than four characters,
or containing characters outside the U+20–7E codepoint range are
invalid.  Feature tags need only
match a feature tag defined in the font, so they are not limited to
explicitly registered OpenType features. Fonts defining custom feature
tags should follow the <a href="http://www.microsoft.com/typography/otspec/featuretags.htm">tag name rules</a> defined in the OpenType specification <a data-link-type="biblio" href="#biblio-opentype-features">[OPENTYPE-FEATURES]</a>.</p>
   <p>Feature tags not present in the font are ignored; a user agent must
not attempt to synthesize fallback behavior based on these feature
tags.  The one exception is that user agents may synthetically support
the <code>kern</code> feature with fonts that contain
kerning data in the form of a "kern" table but lack <code>kern</code> feature support in the "GPOS" table.</p>
   <p class="note" role="note"><span>Note:</span> In general, authors should use the <a class="property" data-link-type="propdesc" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning②">font-kerning</a> property to
explicitly enable or disable kerning since this property always affects
fonts with either type of kerning data.</p>
   <p>If present, a value indicates an index used for glyph selection.
An <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#integer-value" id="ref-for-integer-value①">&lt;integer></a> value must be 0 or greater. A value of 0
indicates that the feature is disabled.  For boolean features, a
value of 1 enables the feature.  For non-boolean features, a value
of 1 or greater enables the feature and indicates the feature
selection index. A value of <span class="css">on</span> is synonymous with 1 and <span class="css">off</span> is
synonymous with 0. If the value is omitted, a value of 1 is assumed.</p>
   <div class="example" id="example-635f5201">
    <a class="self-link" href="#example-635f5201"></a> Examples: 
<pre>font-feature-settings: "dlig" 1;       /* dlig=1 enable discretionary ligatures */
font-feature-settings: "smcp" on;      /* smcp=1 enable small caps */
font-feature-settings: "c2sc";         /* c2sc=1 enable caps to small caps */
font-feature-settings: "liga" off;     /* liga=0 no common ligatures */
font-feature-settings: "tnum", "hist"; /* tnum=1, hist=1 enable tabular numbers and historical forms */
font-feature-settings: "tnum" "hist";  /* invalid, need a comma-delimited list */
font-feature-settings: "silly" off;    /* invalid, tag too long */
font-feature-settings: "PKRN";         /* PKRN=1 enable custom feature */
font-feature-settings: dlig;           /* invalid, tag must be a string */
</pre>
   </div>
   <p>When values greater than the range supported by the font are
specified, the behavior is explicitly undefined.  For boolean
features, in general these will enable the feature.  For non-boolean
features, out of range values will in general be equivalent to a 0
value.  However, in both cases the exact behavior will depend upon the
way the font is designed (specifically, which type of lookup is used
to define the feature).</p>
   <p>Although specifically defined for OpenType feature tags, feature
tags for other modern font formats that support font features may be
added in the future.  Where possible, features defined for other font
formats should attempt to follow the pattern of registered OpenType
tags.</p>
   <div class="example" id="example-b4ef3250">
    <a class="self-link" href="#example-b4ef3250"></a> The Japanese text below will be rendered with half-width kana characters: 
<pre lang="ja">body { font-feature-settings: "hwid"; /* Half-width OpenType feature */ }

&lt;p>毎日<a href="http://images.google.com/images?q=%E3%82%AB%E3%83%AC%E3%83%BC" style="text-decoration: none;">カレー</a>食べてるのに、飽きない&lt;/p>
</pre>
   </div>
   <h3 class="heading settled" data-level="6.13" id="font-language-override-prop"><span class="secno">6.13. </span><span class="content">Font language override: the <a class="property" data-link-type="propdesc" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override④">font-language-override</a> property</span><a class="self-link" href="#font-language-override-prop"></a></h3>
   <table class="def propdef" data-link-for-hint="font-language-override">
    <tbody>
     <tr>
      <th>Name:
      <td><dfn class="dfn-paneled css" data-dfn-type="property" data-export id="propdef-font-language-override">font-language-override</dfn>
     <tr class="value">
      <th><a href="https://drafts.csswg.org/css-values/#value-defs">Value:</a>
      <td class="prod">normal <a data-link-type="grammar" href="https://drafts.csswg.org/css-values-4/#comb-one" id="ref-for-comb-one①①⑤">|</a> <a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value③">&lt;string></a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#initial-values">Initial:</a>
      <td>normal
     <tr>
      <th>Applies to:
      <td><a href="https://drafts.csswg.org/css-pseudo/#generated-content" title="Includes ::before and ::after pseudo-elements.">all elements</a>
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#inherited-property">Inherited:</a>
      <td>yes
     <tr>
      <th><a href="https://drafts.csswg.org/css-values/#percentages">Percentages:</a>
      <td>n/a
     <tr>
      <th><a href="https://drafts.csswg.org/css-cascade/#computed">Computed value:</a>
      <td>as specified
     <tr>
      <th>Canonical order:
      <td>per grammar
     <tr>
      <th><a href="https://drafts.csswg.org/web-animations/#animation-type">Animation type:</a>
      <td>discrete
   </table>
   <p>Normally, authors can control the use of language-specific glyph substitutions and positioning
by setting the content language of an element, as described in <a href="#language-specific-support">§ 6.2 Language-specific display</a>:</p>
<pre>&lt;!-- Display text using S’gaw Karen specific features -->
&lt;p lang="ksw">...&lt;/p>
</pre>
   <p>In some cases, authors may need to specify a language system
that differs from the content language, for example due to the need to mimic another language’s
typographic traditions.  The <a class="property" data-link-type="propdesc" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override⑤">font-language-override</a> property allows authors to explicitly specify
the language system of the font, overriding the language system implied by the content language.</p>
   <p>Values have the following meanings:</p>
   <dl>
    <dt><dfn class="css" data-dfn-for="font-language-override" data-dfn-type="value" data-export id="valdef-font-language-override-normal">normal<a class="self-link" href="#valdef-font-language-override-normal"></a></dfn> 
    <dd>specifies that when rendering with OpenType fonts,
		the content language of the element is used to infer the OpenType language system 
    <dt><dfn class="css" data-dfn-for="font-language-override" data-dfn-type="value" data-export id="valdef-font-language-override-string"><a class="production css" data-link-type="type" href="https://drafts.csswg.org/css-values-3/#string-value" id="ref-for-string-value④">&lt;string></a><a class="self-link" href="#valdef-font-language-override-string"></a></dfn> 
    <dd>single three-letter case-sensitive OpenType <a href="http://www.microsoft.com/typography/otspec/languagetags.htm">language system tag</a>,
		specifies the OpenType language system to be used instead of the language system implied by the language of the element 
   </dl>
   <p>Use of invalid OpenType language system tags must not generate a
parse error but must be ignored when doing glyph selection and
placement.</p>
   <div class="example" id="example-563ce785">
    <a class="self-link" href="#example-563ce785"></a> The <a href="http://www.un.org/en/documents/udhr/index.shtml">Universal Declaration of Human Rights</a> has
	been translated into a wide variety of languages.  In Turkish, Article 9 of this document might be marked up as below: 
<pre lang="tr">&lt;body lang="tr">

&lt;h4>Madde 9&lt;/h4>
&lt;p>Hiç kimse keyfi olarak tutuklanamaz, alıkonulanamaz veya sürülemez.&lt;/p>
</pre>
    <p>Here the user agent uses the value of the <code>lang</code> attribute when rendering text and
	appropriately renders this text without "fi" ligatures.  There is no need
	to use the <a class="property" data-link-type="propdesc" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override⑥">font-language-override</a> property.</p>
    <p>However, a given font may lack support for a specific language.  In this
	situation authors may need to use the typographic conventions of a related language
	that are supported by that font:</p>
<pre lang="mk">&lt;body lang="mk">     &lt;!-- Macedonian lang code -->

body { font-language-override: "SRB"; /* Serbian OpenType language tag */ }

&lt;h4>Члeн 9&lt;/h4>
&lt;p>Никoj чoвeк нeмa дa бидe пoдлoжeн нa прoизвoлнo aпсeњe, притвoр или прoгoнувaњe.&lt;/p>
</pre>
    <p>The Macedonian text here will be rendered using Serbian typographic conventions, with the
	assumption that the font specified supports Serbian.</p>
   </div>
   <h2 class="heading settled" data-level="7" id="font-feature-resolution"><span class="secno">7. </span><span class="content"> Font Feature Resolution <span id="rendering-considerations"></span> </span><a class="self-link" href="#font-feature-resolution"></a></h2>
   <p>As described in the previous section, font features can be enabled
in a variety of ways, either via the use of <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant①⑦">font-variant</a> or <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings③">font-feature-settings</a> in a style rule or within an <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face④⑥">@font-face</a> rule.
The resolution order for the union of these settings is defined below.
Features defined via CSS properties are applied on top of layout engine
default features.</p>
   <h3 class="heading settled" data-level="7.1" id="default-features"><span class="secno">7.1. </span><span class="content">Default features</span><a class="self-link" href="#default-features"></a></h3>
   <p>For OpenType fonts, user agents must enable the default features defined
in the OpenType documentation for a given script and writing mode.  Required ligatures,
common ligatures and contextual forms must be enabled by default
(OpenType features: <code>rlig</code>, <code>liga</code>, <code>clig</code>, <code>calt</code>),
along with localized forms (OpenType feature: <code>locl</code>),
and features required for proper display of composed characters and marks
(OpenType features: <code>ccmp</code>, <code>mark</code>, <code>mkmk</code>).  These features
must always be enabled, even when the value of the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant①⑧">font-variant</a> and <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings④">font-feature-settings</a> properties is <a class="css" data-link-type="maybe" href="#valdef-font-variant-normal" id="ref-for-valdef-font-variant-normal②">normal</a>.
Individual features are only disabled when explicitly overridden by the author, as when <a class="property" data-link-type="propdesc" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures②">font-variant-ligatures</a> is set to <a class="css" data-link-type="maybe" href="#valdef-font-variant-ligatures-common-lig-values-no-common-ligatures" id="ref-for-valdef-font-variant-ligatures-common-lig-values-no-common-ligatures">no-common-ligatures</a>.
For handling complex scripts such as <a href="http://www.microsoft.com/typography/otfntdev/arabicot/features.aspx">Arabic</a>, <a href="http://www.microsoft.com/typography/otfntdev/mongolot/features.htm">Mongolian</a> or <a href="http://www.microsoft.com/typography/otfntdev/devanot/features.aspx">Devanagari</a> additional features are required.  For upright text within vertical text runs, vertical
alternates (OpenType feature: <code>vert</code>) must be enabled.</p>
   <h3 class="heading settled" data-level="7.2" id="feature-precedence"><span class="secno">7.2. </span><span class="content">Feature precedence</span><a class="self-link" href="#feature-precedence"></a></h3>
   <p>General and <a data-link-type="dfn" href="#font-specific" id="ref-for-font-specific⑨">font specific</a> font feature property settings are
resolved in the order below, in ascending order of precedence.  This ordering is
used to construct a combined list of font features that affect a given
text run.</p>
   <ol>
    <li>Font features enabled by default, including features required for a given script. 
    <li>If the font is defined via an <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face④⑦">@font-face</a> rule, the font features
	implied by the font-variant descriptor in the <span class="css" id="ref-for-at-ruledef-font-face④⑧">@font-face</span> rule. 
    <li>If the font is defined via an <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face④⑨">@font-face</a> rule, the font features
	implied by the font-feature-settings descriptor in the <span class="css" id="ref-for-at-ruledef-font-face⑤⓪">@font-face</span> rule. 
    <li>Font features implied by the value of the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant①⑨">font-variant</a> property,
	the related <span class="property" id="ref-for-descdef-font-face-font-variant②⓪">font-variant</span> subproperties and any other CSS property
	that uses OpenType features (e.g. the <a class="property" data-link-type="propdesc" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning③">font-kerning</a> property). 
    <li>Feature settings determined by properties other than <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant②①">font-variant</a> or <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings⑤">font-feature-settings</a>.  For example, setting a
	non-default value for the <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css-text-3/#propdef-letter-spacing" id="ref-for-propdef-letter-spacing①">letter-spacing</a> property disables optional ligatures. 
    <li>Font features implied by the value of <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings⑥">font-feature-settings</a> property. 
   </ol>
   <p>This ordering allows authors to set up a general set of defaults
for fonts within their <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face⑤①">@font-face</a> rules, then override them with
property settings for specific elements.  General property settings
override the settings in <span class="css" id="ref-for-at-ruledef-font-face⑤②">@font-face</span> rules and low-level font feature
settings override <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant②②">font-variant</a> property settings.</p>
   <p>For situations where the combined list of font feature settings
contains more than one value for the same feature, the last value is
used. When a font lacks support for a given underlying font feature,
text is simply rendered as if that font feature was not enabled; font
fallback does not occur and no attempt is made to synthesize the
feature except where explicitly defined for specific properties.</p>
   <h3 class="heading settled" data-level="7.3" id="feature-precedence-examples"><span class="secno">7.3. </span><span class="content">Feature precedence examples</span><a class="self-link" href="#feature-precedence-examples"></a></h3>
   <div class="example" id="example-e9170b84">
    <a class="self-link" href="#example-e9170b84"></a> With the styles below, numbers are rendered proportionally when used within
	a paragraph but are shown in tabular form within tables of prices: 
<pre>body {
  font-variant-numeric: proportional-nums;
}

table.prices td {
  font-variant-numeric: tabular-nums;
}
</pre>
   </div>
   <div class="example" id="example-9611368d">
    <a class="self-link" href="#example-9611368d"></a> When the <span class="css">font-variant</span> descriptor
	is used within an <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face⑤③">@font-face</a> rule, it only
	applies to the font defined by that rule. 
<pre>@font-face {
  font-family: MainText;
  src: url(http://example.com/font.woff);
  font-variant: oldstyle-nums proportional-nums styleset(1,3);
}

body {
  font-family: MainText, Helvetica;
}

table.prices td {
  font-variant-numeric: tabular-nums;
}
</pre>
    <p>In this case, old-style numerals will be used throughout but only
	where the font "MainText" is used. Just as in the previous example,
	tabular values will be used in price tables since <a class="css" data-link-type="maybe" href="#valdef-font-variant-numeric-numeric-spacing-values-tabular-nums" id="ref-for-valdef-font-variant-numeric-numeric-spacing-values-tabular-nums">tabular-nums</a> appears in a general style rule and its use is mutually exclusive with <a class="css" data-link-type="maybe" href="#valdef-font-variant-numeric-numeric-spacing-values-proportional-nums" id="ref-for-valdef-font-variant-numeric-numeric-spacing-values-proportional-nums">proportional-nums</a>.  Stylistic alternate sets will only be used where
	MainText is used.</p>
   </div>
   <div class="example" id="example-ffef917e">
    <a class="self-link" href="#example-ffef917e"></a> The <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face⑤④">@font-face</a> rule can also be used to access font features in locally available
	fonts via the use of <a class="css" data-link-type="maybe" href="#funcdef-font-face-src-local" id="ref-for-funcdef-font-face-src-local②">local()</a> in the <a class="property" data-link-type="propdesc" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src③">src</a> descriptor of the <span class="css" id="ref-for-at-ruledef-font-face⑤⑤">@font-face</span> definition: 
<pre>@font-face {
  font-family: BodyText;
  src: local("HiraMaruPro-W4");
  font-variant: proportional-width;
  font-feature-settings: "ital"; /* Latin italics within CJK text feature */
}

body { font-family: BodyText, serif; }
</pre>
    <p>If available, a Japanese font "Hiragino Maru Gothic" will be used.  When text
	rendering occurs, Japanese kana will be proportionally spaced and Latin text will
	be italicised.  Text rendered with the fallback serif font will use default
	rendering properties.</p>
   </div>
   <div class="example" id="example-1165dac3">
    <a class="self-link" href="#example-1165dac3"></a> In the example below, discretionary ligatures are enabled only for a downloadable font
	but are disabled within spans of class "special": 
<pre>@font-face {
  font-family: main;
  src: url(fonts/ffmeta.woff) format("woff");
  font-variant: discretionary-ligatures;
}

body         { font-family: main, Helvetica; }
span.special { font-variant-ligatures: no-discretionary-ligatures; }
</pre>
    <p>Suppose one adds a rule using <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings⑦">font-feature-settings</a> to enable discretionary ligatures:</p>
<pre>body         { font-family: main, Helvetica; }
span         { font-feature-settings: "dlig"; }
span.special { font-variant-ligatures: no-discretionary-ligatures; }
</pre>
    <p>In this case, discretionary ligatures <em>will</em> be rendered within spans of class "special".
	This is because both the <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings⑧">font-feature-settings</a> and <a class="property" data-link-type="propdesc" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures③">font-variant-ligatures</a> properties
	apply to these spans.  Although the <span class="css">no-discretionary ligatures</span> setting of <span class="property" id="ref-for-propdef-font-variant-ligatures④">font-variant-ligatures</span> effectively disables the OpenType <code>dlig</code> feature, because the <span class="property" id="ref-for-descdef-font-face-font-feature-settings⑨">font-feature-settings</span> is resolved after that, the <span class="css">dlig</span> value reenables discretionary ligatures.</p>
   </div>
   <h2 class="heading settled" data-level="8" id="object-model"><span class="secno">8. </span><span class="content">Object Model</span><a class="self-link" href="#object-model"></a></h2>
   <p>The contents of <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face⑤⑥">@font-face</a> and <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values④">@font-feature-values</a> rules can be accessed via
the following extensions to the CSS Object Model.</p>
   <h3 class="heading settled" data-level="8.1" id="om-fontface"><span class="secno">8.1. </span><span class="content">The <code class="idl"><a data-link-type="idl" href="#cssfontfacerule" id="ref-for-cssfontfacerule">CSSFontFaceRule</a></code> interface</span><a class="self-link" href="#om-fontface"></a></h3>
   <p>The <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="cssfontfacerule"><code>CSSFontFaceRule</code></dfn> interface represents a <a class="css" data-link-type="maybe" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face⑤⑦">@font-face</a> rule.</p>
<pre class="idl highlight def"><c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="#cssfontfacerule" id="ref-for-cssfontfacerule①"><c- g>CSSFontFaceRule</c-></a> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule"><c- n>CSSRule</c-></a> {
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfacerule-family"><code><c- g>family</c-></code><a class="self-link" href="#dom-cssfontfacerule-family"></a></dfn>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring①"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfacerule-src"><code><c- g>src</c-></code><a class="self-link" href="#dom-cssfontfacerule-src"></a></dfn>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring②"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfacerule-style"><code><c- g>style</c-></code><a class="self-link" href="#dom-cssfontfacerule-style"></a></dfn>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring③"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfacerule-weight"><code><c- g>weight</c-></code><a class="self-link" href="#dom-cssfontfacerule-weight"></a></dfn>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring④"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfacerule-stretch"><code><c- g>stretch</c-></code><a class="self-link" href="#dom-cssfontfacerule-stretch"></a></dfn>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑤"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfacerule-unicoderange"><code><c- g>unicodeRange</c-></code><a class="self-link" href="#dom-cssfontfacerule-unicoderange"></a></dfn>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑥"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfacerule-variant"><code><c- g>variant</c-></code><a class="self-link" href="#dom-cssfontfacerule-variant"></a></dfn>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑦"><c- n>CSSOMString</c-></a> <dfn class="idl-code" data-dfn-for="CSSFontFaceRule" data-dfn-type="attribute" data-export data-type="CSSOMString" id="dom-cssfontfacerule-featuresettings"><code><c- g>featureSettings</c-></code><a class="self-link" href="#dom-cssfontfacerule-featuresettings"></a></dfn>;
};
</pre>
   <p>The DOM Level 2 Style specification <a data-link-type="biblio" href="#biblio-dom-level-2-style">[DOM-LEVEL-2-STYLE]</a> defined a different variant of this rule.  This definition supercedes that one.</p>
   <h3 class="heading settled" data-level="8.2" id="om-fontfeaturevalues"><span class="secno">8.2. </span><span class="content">The <code class="idl"><a data-link-type="idl" href="#cssfontfeaturevaluesrule" id="ref-for-cssfontfeaturevaluesrule">CSSFontFeatureValuesRule</a></code> interface</span><a class="self-link" href="#om-fontfeaturevalues"></a></h3>
   <p>The <code class="idl"><a data-link-type="idl" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule①">CSSRule</a></code> interface is extended as follows:</p>
<pre class="idl highlight def"><c- b>partial</c-> <c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule②"><c- g>CSSRule</c-></a> {
  <c- b>const</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-short" id="ref-for-idl-unsigned-short"><c- b>unsigned</c-> <c- b>short</c-></a> <dfn class="idl-code" data-dfn-for="CSSRule" data-dfn-type="const" data-export id="dom-cssrule-font_feature_values_rule"><code><c- g>FONT_FEATURE_VALUES_RULE</c-></code><a class="self-link" href="#dom-cssrule-font_feature_values_rule"></a></dfn> = 14;
};
</pre>
   <p>The <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="cssfontfeaturevaluesrule"><code>CSSFontFeatureValuesRule</code></dfn> interface represents a <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values⑤">@font-feature-values</a> rule.</p>
<pre class="idl highlight def"><c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="#cssfontfeaturevaluesrule" id="ref-for-cssfontfeaturevaluesrule①"><c- g>CSSFontFeatureValuesRule</c-></a> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule③"><c- n>CSSRule</c-></a> {
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑧"><c- n>CSSOMString</c-></a> <a class="idl-code" data-link-type="attribute" data-type="CSSOMString" href="#dom-cssfontfeaturevaluesrule-fontfamily" id="ref-for-dom-cssfontfeaturevaluesrule-fontfamily"><c- g>fontFamily</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-annotation" id="ref-for-dom-cssfontfeaturevaluesrule-annotation"><c- g>annotation</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap①"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-ornaments" id="ref-for-dom-cssfontfeaturevaluesrule-ornaments"><c- g>ornaments</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap②"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-stylistic" id="ref-for-dom-cssfontfeaturevaluesrule-stylistic"><c- g>stylistic</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap③"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-swash" id="ref-for-dom-cssfontfeaturevaluesrule-swash"><c- g>swash</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap④"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-charactervariant" id="ref-for-dom-cssfontfeaturevaluesrule-charactervariant"><c- g>characterVariant</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑤"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-styleset" id="ref-for-dom-cssfontfeaturevaluesrule-styleset"><c- g>styleset</c-></a>;
};

[<a class="idl-code" data-link-type="extended-attribute"><c- g>MapClass</c-></a>(<a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑨"><c- n>CSSOMString</c-></a>, <c- b>sequence</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long"><c- b>unsigned</c-> <c- b>long</c-></a>>)]
<c- b>interface</c-> <dfn class="dfn-paneled idl-code" data-dfn-type="interface" data-export id="cssfontfeaturevaluesmap"><code><c- g>CSSFontFeatureValuesMap</c-></code></dfn> {
  <c- b>void</c-> <dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesMap" data-dfn-type="method" data-export data-lt="set(featureValueName, values)" id="dom-cssfontfeaturevaluesmap-set"><code><c- g>set</c-></code></dfn>(<a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring①⓪"><c- n>CSSOMString</c-></a> <dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesMap/set(featureValueName, values)" data-dfn-type="argument" data-export id="dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename"><code><c- g>featureValueName</c-></code></dfn>,
           (<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long①"><c- b>unsigned</c-> <c- b>long</c-></a> <c- b>or</c-> <c- b>sequence</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long②"><c- b>unsigned</c-> <c- b>long</c-></a>>) <dfn class="idl-code" data-dfn-for="CSSFontFeatureValuesMap/set(featureValueName, values)" data-dfn-type="argument" data-export id="dom-cssfontfeaturevaluesmap-set-featurevaluename-values-values"><code><c- g>values</c-></code><a class="self-link" href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-values"></a></dfn>);
};
</pre>
   <dl>
    <dt><dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export id="dom-cssfontfeaturevaluesrule-fontfamily"><code>fontFamily</code></dfn> <span> of type <a data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring①①">CSSOMString</a></span> 
    <dd>The list of one or more font families for which a given set of feature values is defined. 
    <dt><dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export id="dom-cssfontfeaturevaluesrule-annotation"><code>annotation</code></dfn> <span> of type <a data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑥">CSSFontFeatureValuesMap</a>, readonly</span> 
    <dt><dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export id="dom-cssfontfeaturevaluesrule-ornaments"><code>ornaments</code></dfn> <span> of type <a data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑦">CSSFontFeatureValuesMap</a>, readonly</span> 
    <dt><dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export id="dom-cssfontfeaturevaluesrule-stylistic"><code>stylistic</code></dfn> <span> of type <a data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑧">CSSFontFeatureValuesMap</a>, readonly</span> 
    <dt><dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export id="dom-cssfontfeaturevaluesrule-swash"><code>swash</code></dfn> <span> of type <a data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑨">CSSFontFeatureValuesMap</a>, readonly</span> 
    <dt><dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export id="dom-cssfontfeaturevaluesrule-charactervariant"><code>characterVariant</code></dfn> <span> of type <a data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap①⓪">CSSFontFeatureValuesMap</a>, readonly</span> 
    <dt><dfn class="dfn-paneled idl-code" data-dfn-for="CSSFontFeatureValuesRule" data-dfn-type="attribute" data-export id="dom-cssfontfeaturevaluesrule-styleset"><code>styleset</code></dfn> <span> of type <a data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap①①">CSSFontFeatureValuesMap</a>, readonly</span> 
    <dd>Maps of feature values associated with feature value names for a given <a class="property" data-link-type="propdesc" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates④">font-variant-alternates</a> value type 
   </dl>
   <p>Each value map attribute of <code class="idl"><a data-link-type="idl" href="#cssfontfeaturevaluesrule" id="ref-for-cssfontfeaturevaluesrule②">CSSFontFeatureValuesRule</a></code> reflects the values
defined via a corresponding <a data-link-type="dfn" href="#feature_value_block" id="ref-for-feature_value_block⑥">feature value block</a>.
Thus, the <code class="idl"><a data-link-type="idl" href="#dom-cssfontfeaturevaluesrule-annotation" id="ref-for-dom-cssfontfeaturevaluesrule-annotation①">annotation</a></code> attribute
contains the values contained within a <span class="css">@annotation</span> <span id="ref-for-feature_value_block⑦">feature value block</span>, the <code class="idl"><a data-link-type="idl" href="#dom-cssfontfeaturevaluesrule-ornaments" id="ref-for-dom-cssfontfeaturevaluesrule-ornaments①">ornaments</a></code> attribute contains the
values contained with a <span class="css">@ornaments</span> <span id="ref-for-feature_value_block⑧">feature value block</span> and so forth.</p>
   <p>The <code class="idl"><a data-link-type="idl" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap①②">CSSFontFeatureValuesMap</a></code> interface uses the <a href="http://dev.w3.org/2006/webapi/WebIDL/#es-map-members">default map class methods</a> but the <code class="idl"><a data-link-type="idl" href="#dom-cssfontfeaturevaluesmap-set" id="ref-for-dom-cssfontfeaturevaluesmap-set">set()</a></code> method has different behavior.  It takes a sequence of unsigned integers and
associates it with a given <code class="idl"><a data-link-type="idl" href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename" id="ref-for-dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename">featureValueName</a></code>. The method
behaves the same as the default map class method
except that a single unsigned long value is treated as a sequence of a
single value. The method throws an exception if an invalid number of
values is passed in.  If the associated <a data-link-type="dfn" href="#feature_value_block" id="ref-for-feature_value_block⑨">feature value block</a> only allows a limited number of values, the <code class="idl"><a data-link-type="idl" href="#dom-cssfontfeaturevaluesmap-set" id="ref-for-dom-cssfontfeaturevaluesmap-set①">set()</a></code> method
throws an <code class="idl"><a data-link-type="idl" href="https://heycam.github.io/webidl/#invalidaccesserror" id="ref-for-invalidaccesserror">InvalidAccessError</a></code> exception when the input
sequence to <code class="idl"><a data-link-type="idl" href="#dom-cssfontfeaturevaluesmap-set" id="ref-for-dom-cssfontfeaturevaluesmap-set②">set()</a></code> contains more than the limited number of
values.  See the
description of <a href="#multi-valued-features">multi-valued feature value definitions</a> for details on the maximum number of values allowed for a given type
of <span id="ref-for-feature_value_block①⓪">feature value block</span>.  The <code class="idl"><a data-link-type="idl" href="https://w3c.github.io/webappsec-credential-management/#dom-credentialscontainer-get" id="ref-for-dom-credentialscontainer-get">get()</a></code> method always returns a sequence of values, even if the sequence only contains
a single value.</p>
   <h2 class="no-num heading settled" id="platform-props-to-css"><span class="content">Appendix A: Mapping platform font properties to CSS properties</span><a class="self-link" href="#platform-props-to-css"></a></h2>
   <p><em>This appendix is included as background for some of the problems and
situations that are described in other sections.  It should be viewed as
informative only.</em></p>
   <p>Font properties in CSS are designed to be independent of the
underlying font formats used; they can be used to specify bitmap fonts,
Type1 fonts, SVG fonts in addition to the common TrueType and OpenType
fonts.  But there are facets of the TrueType and OpenType formats that often
cause confusion for authors and present challenges to implementers
on different platforms.</p>
   <p>Originally developed at Apple, TrueType was designed as an outline
font format for both screen and print.  Microsoft joined Apple in
developing the TrueType format and both platforms have supported
TrueType fonts since then.  Font data in the TrueType format consists of
a set of tables distinguished with common four-letter tag names, each
containing a specific type of data.  For example, naming information,
including copyright and license information, is stored in the "name"
table.  The <a data-link-type="dfn" href="#character-map" id="ref-for-character-map⑧">character map</a> ("cmap") table contains a mapping of character
encodings to glyphs.  Apple later added additional tables for supporting
enhanced typographic functionality; these are now called Apple Advanced
Typography, or AAT, fonts.  Microsoft and Adobe developed a separate set
of tables for advanced typography and called their format OpenType <a data-link-type="biblio" href="#biblio-opentype">[OPENTYPE]</a>.</p>
   <p>In many cases the font data used under Microsoft Windows or Linux
is slightly different from the data used under Apple’s Mac OS X
because the TrueType format allowed for explicit variation across
platforms.  This includes font metrics, names and <a data-link-type="dfn" href="#character-map" id="ref-for-character-map⑨">character map</a> data.</p>
   <p>Specifically, font family name data is handled differently across
platforms. For TrueType and OpenType fonts these names are contained
in the "name" table, in name records with name ID 1.  Mulitple names
can be stored for different locales, but Microsoft recommends fonts
always include at least a US English version of the name.  On Windows,
Microsoft made the decision for backwards compatibility to limit this
family name to a maximum of four faces; for larger groupings the
"preferred family" (name ID 16) or "WWS family" (name ID 21) can be
used.  Other platforms such as OSX don’t have this limitation, so the
family name is used to define all possible groupings.</p>
   <p>Other name table data provides names used to uniquely identify a
specific face within a family.  The full font name (name ID 4) and the
Postscript name (name ID 6) describe a single face uniquely.  For example, the bold
face of the Gill Sans family has a fullname of "Gill Sans Bold" and a
Postscript name of "GillSans-Bold". There can be multiple localized
versions of the fullname for a given face, but the Postscript name is
always a unique name made from a limited set of ASCII characters.</p>
   <p>On various platforms, different names are used to search for a
font. For example, with the Windows GDI CreateIndirectFont API, either
a family or fullname can be used to lookup a face, while on Mac OS X
the CTFontCreateWithName API call is used to lookup a given face
using the fullname and Postscript name.  Under Linux, the fontconfig
API allows fonts to be searched using any of these names.  In
situations where platform API’s automatically substitute other font
choices, it may be necessary to verify a returned font matches a given
name.</p>
   <p>The weight of a given face can be determined via the usWeightClass
field of the OS/2 table or inferred from the style name (name ID 2).
Likewise, the width can be determined via the usWidthClass of the OS/2
table or inferred from the style name.  For historical reasons related
to synthetic bolding at weights 200 or lower with the Windows GDI API, font
designers have sometimes skewed values in the OS/2 table to avoid
these weights.</p>
   <p>Rendering complex scripts that use contextual shaping such as Thai,
Arabic and Devanagari requires features present only in OpenType or AAT
fonts.  Currently, complex script rendering is supported on Windows and
Linux using OpenType font features while both OpenType and AAT font features are used
under Mac OS X.</p>
   <h2 class="no-num heading settled" id="ch-ch-ch-changes"><span class="content">Changes</span><a class="self-link" href="#ch-ch-ch-changes"></a></h2>
   <h3 class="no-num heading settled" id="recent-changes"><span class="content"> Changes from the <a href="https://www.w3.org/TR/2013/WD-css-fonts-3-20130711/">July 2013 CSS3 Fonts Last Call Working Draft</a></span><a class="self-link" href="#recent-changes"></a></h3>
   <ul>
    <li>reorder feature precedence such that features implied by other CSS properties override <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant②③">font-variant</a> settings 
    <li>switched examples to use .woff files 
    <li>revised wording of font fetching algorithm 
    <li>drop <span class="css">auto</span> value for <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①⑤">font-size-adjust</a> 
    <li>clarify effect of <a class="property" data-link-type="propdesc" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①⑥">font-size-adjust</a> on <a class="property" data-link-type="propdesc" href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height" id="ref-for-propdef-line-height⑥">line-height</a> 
    <li>allow user agents to synthesize OpenType <code>kern</code> feature 
    <li>add example of ordinals and associated markup 
    <li>minor editorial cleanups 
   </ul>
   <h2 class="no-num heading settled" id="acknowledgments"><span class="content">Acknowledgments</span><a class="self-link" href="#acknowledgments"></a></h2>
   <p>I’d like to thank Tal Leming, Jonathan Kew and Christopher Slye for
all their help and feedback.  John Hudson was kind enough to take the
time to explain the subtleties of OpenType language tags and provided
the example of character variant usage for displaying text on
Byzantine seals. Ken Lunde and Eric Muller provided valuable feedback
on CJK OpenType features and Unicode variation selectors. The idea for
supporting font features by using <a class="property" data-link-type="propdesc" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant②④">font-variant</a> subproperties
originated with Håkon Wium Lie, Adam Twardoch and Tal Leming.  Elika
Etemad supplied some of the initial design ideas for the <a class="css" data-link-type="maybe" href="#at-ruledef-font-feature-values" id="ref-for-at-ruledef-font-feature-values⑥">@font-feature-values</a> rule.  Thanks also to House Industries for
allowing the use of Ed Interlock in the discretionary ligatures
example.</p>
   <p>A special thanks to Robert Bringhurst for the sublime mind expansion
that is <em>The Elements of Typographic Style</em>.</p>
  </main>
  <h2 class="no-ref no-num heading settled" id="conformance"><span class="content"> Conformance</span><a class="self-link" href="#conformance"></a></h2>
  <h3 class="heading settled" id="document-conventions"><span class="content"> Document conventions</span><a class="self-link" href="#document-conventions"></a></h3>
  <p>Conformance requirements are expressed with a combination of
	descriptive assertions and RFC 2119 terminology. The key words “MUST”,
	“MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”,
	“RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this
	document are to be interpreted as described in RFC 2119.
	However, for readability, these words do not appear in all uppercase
	letters in this specification. </p>
  <p>All of the text of this specification is normative except sections
	explicitly marked as non-normative, examples, and notes. <a data-link-type="biblio" href="#biblio-rfc2119">[RFC2119]</a> </p>
  <p>Examples in this specification are introduced with the words “for example”
	or are set apart from the normative text with <code>class="example"</code>,
	like this: </p>
  <div class="example" id="example-ae2b6bc0">
   <a class="self-link" href="#example-ae2b6bc0"></a> 
   <p>This is an example of an informative example. </p>
  </div>
  <p>Informative notes begin with the word “Note” and are set apart from the
	normative text with <code>class="note"</code>, like this: </p>
  <p class="note" role="note">Note, this is an informative note. </p>
  <p>Advisements are normative sections styled to evoke special attention and are
	set apart from other normative text with <code>&lt;strong class="advisement"></code>, like
	this: <strong class="advisement"> UAs MUST provide an accessible alternative. </strong> </p>
  <h3 class="heading settled" id="conform-classes"><span class="content"> Conformance classes</span><a class="self-link" href="#conform-classes"></a></h3>
  <p>Conformance to this specification
	is defined for three conformance classes: </p>
  <dl>
   <dt>style sheet 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#style-sheet">CSS
			style sheet</a>. 
   <dt>renderer 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#user-agent">UA</a> that interprets the semantics of a style sheet and renders
			documents that use them. 
   <dt>authoring tool 
   <dd>A <a href="http://www.w3.org/TR/CSS2/conform.html#user-agent">UA</a> that writes a style sheet. 
  </dl>
  <p>A style sheet is conformant to this specification
	if all of its statements that use syntax defined in this module are valid
	according to the generic CSS grammar and the individual grammars of each
	feature defined in this module. </p>
  <p>A renderer is conformant to this specification
	if, in addition to interpreting the style sheet as defined by the
	appropriate specifications, it supports all the features defined
	by this specification by parsing them correctly
	and rendering the document accordingly. However, the inability of a
	UA to correctly render a document due to limitations of the device
	does not make the UA non-conformant. (For example, a UA is not
	required to render color on a monochrome monitor.) </p>
  <p>An authoring tool is conformant to this specification
	if it writes style sheets that are syntactically correct according to the
	generic CSS grammar and the individual grammars of each feature in
	this module, and meet all other conformance requirements of style sheets
	as described in this module. </p>
  <h3 class="heading settled" id="conform-responsible"><span class="content"> Requirements for Responsible Implementation of CSS</span><a class="self-link" href="#conform-responsible"></a></h3>
  <p>The following sections define several conformance requirements
		for implementing CSS responsibly,
		in a way that promotes interoperability in the present and future. </p>
  <h4 class="heading settled" id="conform-partial"><span class="content"> Partial Implementations</span><a class="self-link" href="#conform-partial"></a></h4>
  <p>So that authors can exploit the forward-compatible parsing rules to assign fallback values, <strong>CSS renderers <em>must</em> treat as invalid
		(and <a href="http://www.w3.org/TR/CSS2/conform.html#ignore">ignore as appropriate</a>)
		any at-rules, properties, property values, keywords, and other syntactic constructs
		for which they have no usable level of support</strong>.
		In particular, user agents <em>must not</em> selectively ignore
		unsupported property values and honor supported values in a single multi-value property declaration:
		if any value is considered invalid (as unsupported values must be),
		CSS requires that the entire declaration be ignored. </p>
  <h4 class="heading settled" id="conform-future-proofing"><span class="content"> Implementations of Unstable and Proprietary Features</span><a class="self-link" href="#conform-future-proofing"></a></h4>
  <p>To avoid clashes with future stable CSS features,
		the CSSWG recommends <a href="http://www.w3.org/TR/CSS/#future-proofing">following best practices</a> for the implementation of <a href="http://www.w3.org/TR/CSS/#unstable">unstable</a> features and <a href="http://www.w3.org/TR/CSS/#proprietary-extension">proprietary extensions</a> to CSS. </p>
  <h4 class="heading settled" id="conform-testing"><span class="content"> Implementations of CR-level Features</span><a class="self-link" href="#conform-testing"></a></h4>
  <p>Once a specification reaches the Candidate Recommendation stage,
		implementers should release an <a data-link-type="dfn" href="http://www.w3.org/TR/CSS/#vendor-prefix">unprefixed</a> implementation
		of any CR-level feature they can demonstrate
		to be correctly implemented according to spec,
		and should avoid exposing a prefixed variant of that feature. </p>
  <p>To establish and maintain the interoperability of CSS across
		implementations, the CSS Working Group requests that non-experimental
		CSS renderers submit an implementation report (and, if necessary, the
		testcases used for that implementation report) to the W3C before
		releasing an unprefixed implementation of any CSS features. Testcases
		submitted to W3C are subject to review and correction by the CSS
		Working Group. </p>
  <p>
   Further information on submitting testcases and implementation reports
		can be found from on the CSS Working Group’s website at <a href="http://www.w3.org/Style/CSS/Test/">http://www.w3.org/Style/CSS/Test/</a>.
		Questions should be directed to the <a href="http://lists.w3.org/Archives/Public/public-css-testsuite">public-css-testsuite@w3.org</a> mailing list. 
<script src="https://www.w3.org/scripts/TR/2016/fixup.js"></script>
  </p>
  <h2 class="no-num no-ref heading settled" id="index"><span class="content">Index</span><a class="self-link" href="#index"></a></h2>
  <h3 class="no-num no-ref heading settled" id="index-defined-here"><span class="content">Terms defined by this specification</span><a class="self-link" href="#index-defined-here"></a></h3>
  <ul class="index">
   <li><a href="#valdef-font-weight-100">100</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-200">200</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-300">300</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-400">400</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-500">500</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-600">600</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-700">700</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-800">800</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-900">900</a><span>, in §3.2</span>
   <li><a href="#typedef-font-size-absolute-size">&lt;absolute-size></a><span>, in §3.5</span>
   <li><a href="#valdef-font-variant-caps-all-petite-caps">all-petite-caps</a><span>, in §6.6</span>
   <li><a href="#valdef-font-variant-caps-all-small-caps">all-small-caps</a><span>, in §6.6</span>
   <li><a href="#valdef-font-variant-alternates-annotation">annotation()</a><span>, in §6.8</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-annotation">annotation</a><span>, in §8.2</span>
   <li><a href="#font-aspect-value">aspect value</a><span>, in §3.6</span>
   <li><a href="#valdef-font-kerning-auto">auto</a><span>, in §6.3</span>
   <li><a href="#valdef-font-weight-bold">bold</a><span>, in §3.2</span>
   <li><a href="#valdef-font-weight-bolder">bolder</a><span>, in §3.2</span>
   <li><a href="#valdef-font-caption">caption</a><span>, in §3.7</span>
   <li><a href="#character-map">character map</a><span>, in §5.2</span>
   <li><a href="#valdef-font-variant-alternates-character-variant">character-variant()</a><span>, in §6.8</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-charactervariant">characterVariant</a><span>, in §8.2</span>
   <li><a href="#valdef-font-variant-ligatures-common-lig-values-common-ligatures">common-ligatures</a><span>, in §6.4</span>
   <li><a href="#typedef-common-lig-values">&lt;common-lig-values></a><span>, in §6.4</span>
   <li><a href="#composite-face">composite face</a><span>, in §5.2</span>
   <li><a href="#valdef-font-stretch-condensed">condensed</a><span>, in §3.3</span>
   <li><a href="#valdef-font-variant-ligatures-contextual-alt-values-contextual">contextual</a><span>, in §6.4</span>
   <li><a href="#typedef-contextual-alt-values">&lt;contextual-alt-values></a><span>, in §6.4</span>
   <li><a href="#cssfontfacerule">CSSFontFaceRule</a><span>, in §8.1</span>
   <li><a href="#cssfontfeaturevaluesmap">CSSFontFeatureValuesMap</a><span>, in §8.2</span>
   <li><a href="#cssfontfeaturevaluesrule">CSSFontFeatureValuesRule</a><span>, in §8.2</span>
   <li><a href="#valdef-generic-family-cursive">cursive</a><span>, in §3.1.1</span>
   <li><a href="#default-face">default face</a><span>, in §5.2</span>
   <li><a href="#descriptor_declaration">descriptor_declaration</a><span>, in §4.1</span>
   <li><a href="#valdef-font-variant-numeric-numeric-fraction-values-diagonal-fractions">diagonal-fractions</a><span>, in §6.7</span>
   <li><a href="#valdef-font-variant-ligatures-discretionary-lig-values-discretionary-ligatures">discretionary-ligatures</a><span>, in §6.4</span>
   <li><a href="#typedef-discretionary-lig-values">&lt;discretionary-lig-values></a><span>, in §6.4</span>
   <li><a href="#typedef-east-asian-variant-values">&lt;east-asian-variant-values></a><span>, in §6.10</span>
   <li><a href="#typedef-east-asian-width-values">&lt;east-asian-width-values></a><span>, in §6.10</span>
   <li><a href="#effective-character-map">effective character map</a><span>, in §4.5</span>
   <li><a href="#valdef-font-stretch-expanded">expanded</a><span>, in §3.3</span>
   <li><a href="#valdef-font-stretch-extra-condensed">extra-condensed</a><span>, in §3.3</span>
   <li><a href="#valdef-font-stretch-extra-expanded">extra-expanded</a><span>, in §3.3</span>
   <li><a href="#dom-cssfontfacerule-family">family</a><span>, in §8.1</span>
   <li><a href="#family-name-value">&lt;family-name></a><span>, in §3.1</span>
   <li><a href="#valdef-generic-family-fantasy">fantasy</a><span>, in §3.1.1</span>
   <li><a href="#typedef-feature-index">&lt;feature-index></a><span>, in §6.9.1</span>
   <li><a href="#dom-cssfontfacerule-featuresettings">featureSettings</a><span>, in §8.1</span>
   <li><a href="#typedef-feature-tag-value">&lt;feature-tag-value></a><span>, in §6.12</span>
   <li><a href="#feature_type">feature_type</a><span>, in §6.9.1</span>
   <li><a href="#feature_value_block">feature_value_block</a><span>, in §6.9.1</span>
   <li><a href="#feature_value_definition">feature_value_definition</a><span>, in §6.9.1</span>
   <li><a href="#typedef-feature-value-name">&lt;feature-value-name></a><span>, in §6.9.1</span>
   <li><a href="#first-available-font">first available font</a><span>, in §5.2</span>
   <li><a href="#propdef-font">font</a><span>, in §3.7</span>
   <li><a href="#font-aspect-value">font aspect value</a><span>, in §3.6</span>
   <li><a href="#at-ruledef-font-face">@font-face</a><span>, in §4.1</span>
   <li><a href="#font_face_rule">font_face_rule</a><span>, in §4.1</span>
   <li><a href="#font_face_sym">FONT_FACE_SYM</a><span>, in §4.1</span>
   <li>
    font-family
    <ul>
     <li><a href="#propdef-font-family">(property)</a><span>, in §3.1</span>
     <li><a href="#descdef-font-face-font-family">descriptor for @font-face</a><span>, in §4.2</span>
    </ul>
   <li><a href="#dom-cssfontfeaturevaluesrule-fontfamily">fontFamily</a><span>, in §8.2</span>
   <li><a href="#font_family_name">font_family_name</a><span>, in §6.9.1</span>
   <li><a href="#font_family_name_list">font_family_name_list</a><span>, in §6.9.1</span>
   <li>
    font-feature-settings
    <ul>
     <li><a href="#propdef-font-feature-settings">(property)</a><span>, in §6.12</span>
     <li><a href="#descdef-font-face-font-feature-settings">descriptor for @font-face</a><span>, in §4.7</span>
    </ul>
   <li><a href="#at-ruledef-font-feature-values">@font-feature-values</a><span>, in §6.9</span>
   <li><a href="#font_feature_values_rule">font_feature_values_rule</a><span>, in §6.9.1</span>
   <li><a href="#dom-cssrule-font_feature_values_rule">FONT_FEATURE_VALUES_RULE</a><span>, in §8.2</span>
   <li><a href="#font_feature_values_sym">FONT_FEATURE_VALUES_SYM</a><span>, in §6.9.1</span>
   <li><a href="#propdef-font-kerning">font-kerning</a><span>, in §6.3</span>
   <li><a href="#propdef-font-language-override">font-language-override</a><span>, in §6.13</span>
   <li><a href="#propdef-font-size">font-size</a><span>, in §3.5</span>
   <li><a href="#propdef-font-size-adjust">font-size-adjust</a><span>, in §3.6</span>
   <li><a href="#font-specific">font specific</a><span>, in §6.8</span>
   <li>
    font-stretch
    <ul>
     <li><a href="#propdef-font-stretch">(property)</a><span>, in §3.3</span>
     <li><a href="#descdef-font-face-font-stretch">descriptor for @font-face</a><span>, in §4.4</span>
    </ul>
   <li>
    font-style
    <ul>
     <li><a href="#propdef-font-style">(property)</a><span>, in §3.4</span>
     <li><a href="#descdef-font-face-font-style">descriptor for @font-face</a><span>, in §4.4</span>
    </ul>
   <li><a href="#propdef-font-synthesis">font-synthesis</a><span>, in §3.8</span>
   <li>
    font-variant
    <ul>
     <li><a href="#propdef-font-variant">(property)</a><span>, in §6.11</span>
     <li><a href="#descdef-font-face-font-variant">descriptor for @font-face</a><span>, in §4.7</span>
    </ul>
   <li><a href="#propdef-font-variant-alternates">font-variant-alternates</a><span>, in §6.8</span>
   <li><a href="#propdef-font-variant-caps">font-variant-caps</a><span>, in §6.6</span>
   <li><a href="#typedef-font-variant-css21">&lt;font-variant-css21></a><span>, in §3.7</span>
   <li><a href="#propdef-font-variant-east-asian">font-variant-east-asian</a><span>, in §6.10</span>
   <li><a href="#propdef-font-variant-ligatures">font-variant-ligatures</a><span>, in §6.4</span>
   <li><a href="#propdef-font-variant-numeric">font-variant-numeric</a><span>, in §6.7</span>
   <li><a href="#propdef-font-variant-position">font-variant-position</a><span>, in §6.5</span>
   <li>
    font-weight
    <ul>
     <li><a href="#propdef-font-weight">(property)</a><span>, in §3.2</span>
     <li><a href="#descdef-font-face-font-weight">descriptor for @font-face</a><span>, in §4.4</span>
    </ul>
   <li><a href="#valdef-font-variant-east-asian-east-asian-width-values-full-width">full-width</a><span>, in §6.10</span>
   <li>
    &lt;generic-family>
    <ul>
     <li><a href="#typedef-generic-family">(type)</a><span>, in §3.1.1</span>
     <li><a href="#generic-family-value">value for font-family</a><span>, in §3.1</span>
    </ul>
   <li><a href="#valdef-font-variant-alternates-historical-forms">historical-forms</a><span>, in §6.8</span>
   <li><a href="#valdef-font-variant-ligatures-historical-lig-values-historical-ligatures">historical-ligatures</a><span>, in §6.4</span>
   <li><a href="#typedef-historical-lig-values">&lt;historical-lig-values></a><span>, in §6.4</span>
   <li><a href="#valdef-font-icon">icon</a><span>, in §3.7</span>
   <li>
    italic
    <ul>
     <li><a href="#valdef-font-face-font-style-italic">value for @font-face/font-style</a><span>, in §4.4</span>
     <li><a href="#valdef-font-style-italic">value for font-style</a><span>, in §3.4</span>
    </ul>
   <li><a href="#valdef-font-variant-east-asian-east-asian-variant-values-jis04">jis04</a><span>, in §6.10</span>
   <li><a href="#valdef-font-variant-east-asian-east-asian-variant-values-jis78">jis78</a><span>, in §6.10</span>
   <li><a href="#valdef-font-variant-east-asian-east-asian-variant-values-jis83">jis83</a><span>, in §6.10</span>
   <li><a href="#valdef-font-variant-east-asian-east-asian-variant-values-jis90">jis90</a><span>, in §6.10</span>
   <li><a href="#valdef-font-size-absolute-size-large">large</a><span>, in §3.5</span>
   <li><a href="#valdef-relative-size-font-size-larger">larger</a><span>, in §3.5</span>
   <li><a href="#valdef-font-size-length-percentage">&lt;length-percentage></a><span>, in §3.5</span>
   <li><a href="#valdef-font-weight-lighter">lighter</a><span>, in §3.2</span>
   <li><a href="#valdef-font-variant-numeric-numeric-figure-values-lining-nums">lining-nums</a><span>, in §6.7</span>
   <li><a href="#funcdef-font-face-src-local">local()</a><span>, in §4.3</span>
   <li><a href="#valdef-font-size-absolute-size-medium">medium</a><span>, in §3.5</span>
   <li><a href="#valdef-font-menu">menu</a><span>, in §3.7</span>
   <li><a href="#valdef-font-message-box">message-box</a><span>, in §3.7</span>
   <li><a href="#valdef-generic-family-monospace">monospace</a><span>, in §3.1.1</span>
   <li><a href="#valdef-font-variant-ligatures-common-lig-values-no-common-ligatures">no-common-ligatures</a><span>, in §6.4</span>
   <li><a href="#valdef-font-variant-ligatures-contextual-alt-values-no-contextual">no-contextual</a><span>, in §6.4</span>
   <li><a href="#valdef-font-variant-ligatures-discretionary-lig-values-no-discretionary-ligatures">no-discretionary-ligatures</a><span>, in §6.4</span>
   <li><a href="#valdef-font-variant-ligatures-historical-lig-values-no-historical-ligatures">no-historical-ligatures</a><span>, in §6.4</span>
   <li>
    none
    <ul>
     <li><a href="#valdef-font-kerning-none">value for font-kerning</a><span>, in §6.3</span>
     <li><a href="#valdef-font-size-adjust-none">value for font-size-adjust</a><span>, in §3.6</span>
     <li><a href="#valdef-font-synthesis-none">value for font-synthesis</a><span>, in §3.8</span>
     <li><a href="#valdef-font-variant-none">value for font-variant</a><span>, in §6.11</span>
     <li><a href="#valdef-font-variant-ligatures-none">value for font-variant-ligatures</a><span>, in §6.4</span>
    </ul>
   <li>
    normal
    <ul>
     <li><a href="#valdef-font-variant-css21-font-normal">value for &lt;font-variant-css21> font</a><span>, in §3.7</span>
     <li><a href="#valdef-font-face-font-style-normal">value for @font-face/font-style</a><span>, in §4.4</span>
     <li><a href="#valdef-font-feature-settings-normal">value for font-feature-settings</a><span>, in §6.12</span>
     <li><a href="#valdef-font-kerning-normal">value for font-kerning</a><span>, in §6.3</span>
     <li><a href="#valdef-font-language-override-normal">value for font-language-override</a><span>, in §6.13</span>
     <li><a href="#valdef-font-stretch-normal">value for font-stretch</a><span>, in §3.3</span>
     <li><a href="#valdef-font-style-normal">value for font-style</a><span>, in §3.4</span>
     <li><a href="#valdef-font-variant-normal">value for font-variant</a><span>, in §6.11</span>
     <li><a href="#valdef-font-variant-alternates-normal">value for font-variant-alternates</a><span>, in §6.8</span>
     <li><a href="#valdef-font-variant-caps-normal">value for font-variant-caps</a><span>, in §6.6</span>
     <li><a href="#valdef-font-variant-east-asian-normal">value for font-variant-east-asian</a><span>, in §6.10</span>
     <li><a href="#valdef-font-variant-ligatures-normal">value for font-variant-ligatures</a><span>, in §6.4</span>
     <li><a href="#valdef-font-variant-numeric-normal">value for font-variant-numeric</a><span>, in §6.7</span>
     <li><a href="#valdef-font-variant-position-normal">value for font-variant-position</a><span>, in §6.5</span>
     <li><a href="#valdef-font-weight-normal">value for font-weight</a><span>, in §3.2</span>
    </ul>
   <li><a href="#valdef-font-size-adjust-number">&lt;number></a><span>, in §3.6</span>
   <li><a href="#typedef-numeric-figure-values">&lt;numeric-figure-values></a><span>, in §6.7</span>
   <li><a href="#typedef-numeric-fraction-values">&lt;numeric-fraction-values></a><span>, in §6.7</span>
   <li><a href="#typedef-numeric-spacing-values">&lt;numeric-spacing-values></a><span>, in §6.7</span>
   <li>
    oblique
    <ul>
     <li><a href="#valdef-font-face-font-style-oblique">value for @font-face/font-style</a><span>, in §4.4</span>
     <li><a href="#valdef-font-style-oblique">value for font-style</a><span>, in §3.4</span>
    </ul>
   <li><a href="#valdef-font-variant-numeric-numeric-figure-values-oldstyle-nums">oldstyle-nums</a><span>, in §6.7</span>
   <li><a href="#valdef-font-variant-numeric-ordinal">ordinal</a><span>, in §6.7</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-ornaments">ornaments</a><span>, in §8.2</span>
   <li><a href="#valdef-font-variant-alternates-ornaments">ornaments()</a><span>, in §6.8</span>
   <li><a href="#valdef-font-variant-caps-petite-caps">petite-caps</a><span>, in §6.6</span>
   <li><a href="#valdef-font-variant-numeric-numeric-spacing-values-proportional-nums">proportional-nums</a><span>, in §6.7</span>
   <li><a href="#valdef-font-variant-east-asian-east-asian-width-values-proportional-width">proportional-width</a><span>, in §6.10</span>
   <li><a href="#typedef-font-size-relative-size">&lt;relative-size></a><span>, in §3.5</span>
   <li><a href="#valdef-font-variant-east-asian-ruby">ruby</a><span>, in §6.10</span>
   <li><a href="#valdef-generic-family-sans-serif">sans-serif</a><span>, in §3.1.1</span>
   <li><a href="#valdef-font-stretch-semi-condensed">semi-condensed</a><span>, in §3.3</span>
   <li><a href="#valdef-font-stretch-semi-expanded">semi-expanded</a><span>, in §3.3</span>
   <li><a href="#valdef-generic-family-serif">serif</a><span>, in §3.1.1</span>
   <li><a href="#dom-cssfontfeaturevaluesmap-set">set(featureValueName, values)</a><span>, in §8.2</span>
   <li><a href="#valdef-font-variant-east-asian-east-asian-variant-values-simplified">simplified</a><span>, in §6.10</span>
   <li><a href="#valdef-font-variant-numeric-slashed-zero">slashed-zero</a><span>, in §6.7</span>
   <li><a href="#valdef-font-size-absolute-size-small">small</a><span>, in §3.5</span>
   <li>
    small-caps
    <ul>
     <li><a href="#valdef-font-variant-css21-font-small-caps">value for &lt;font-variant-css21> font</a><span>, in §3.7</span>
     <li><a href="#valdef-font-variant-caps-small-caps">value for font-variant-caps</a><span>, in §6.6</span>
    </ul>
   <li><a href="#valdef-font-small-caption">small-caption</a><span>, in §3.7</span>
   <li><a href="#valdef-relative-size-font-size-smaller">smaller</a><span>, in §3.5</span>
   <li>
    src
    <ul>
     <li><a href="#dom-cssfontfacerule-src">attribute for CSSFontFaceRule</a><span>, in §8.1</span>
     <li><a href="#descdef-font-face-src">descriptor for @font-face</a><span>, in §4.3</span>
    </ul>
   <li><a href="#valdef-font-variant-numeric-numeric-fraction-values-stacked-fractions">stacked-fractions</a><span>, in §6.7</span>
   <li><a href="#valdef-font-status-bar">status-bar</a><span>, in §3.7</span>
   <li><a href="#dom-cssfontfacerule-stretch">stretch</a><span>, in §8.1</span>
   <li><a href="#valdef-font-language-override-string">&lt;string></a><span>, in §6.13</span>
   <li>
    style
    <ul>
     <li><a href="#dom-cssfontfacerule-style">attribute for CSSFontFaceRule</a><span>, in §8.1</span>
     <li><a href="#valdef-font-synthesis-style">value for font-synthesis</a><span>, in §3.8</span>
    </ul>
   <li><a href="#dom-cssfontfeaturevaluesrule-styleset">styleset</a><span>, in §8.2</span>
   <li><a href="#valdef-font-variant-alternates-styleset">styleset()</a><span>, in §6.8</span>
   <li><a href="#valdef-font-variant-alternates-stylistic">stylistic()</a><span>, in §6.8</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-stylistic">stylistic</a><span>, in §8.2</span>
   <li><a href="#valdef-font-variant-position-sub">sub</a><span>, in §6.5</span>
   <li><a href="#valdef-font-variant-position-super">super</a><span>, in §6.5</span>
   <li><a href="#support">support</a><span>, in §5.2</span>
   <li><a href="#dom-cssfontfeaturevaluesrule-swash">swash</a><span>, in §8.2</span>
   <li><a href="#valdef-font-variant-alternates-swash">swash()</a><span>, in §6.8</span>
   <li><a href="#system-font-fallback">system font fallback</a><span>, in §5.2</span>
   <li><a href="#valdef-font-variant-numeric-numeric-spacing-values-tabular-nums">tabular-nums</a><span>, in §6.7</span>
   <li><a href="#valdef-font-variant-caps-titling-caps">titling-caps</a><span>, in §6.6</span>
   <li><a href="#valdef-font-variant-east-asian-east-asian-variant-values-traditional">traditional</a><span>, in §6.10</span>
   <li><a href="#valdef-font-stretch-ultra-condensed">ultra-condensed</a><span>, in §3.3</span>
   <li><a href="#valdef-font-stretch-ultra-expanded">ultra-expanded</a><span>, in §3.3</span>
   <li><a href="#valdef-font-variant-caps-unicase">unicase</a><span>, in §6.6</span>
   <li><a href="#dom-cssfontfacerule-unicoderange">unicodeRange</a><span>, in §8.1</span>
   <li><a href="#descdef-font-face-unicode-range">unicode-range</a><span>, in §4.5</span>
   <li><a href="#dom-cssfontfacerule-variant">variant</a><span>, in §8.1</span>
   <li>
    weight
    <ul>
     <li><a href="#dom-cssfontfacerule-weight">attribute for CSSFontFaceRule</a><span>, in §8.1</span>
     <li><a href="#weight">definition of</a><span>, in §2</span>
     <li><a href="#valdef-font-synthesis-weight">value for font-synthesis</a><span>, in §3.8</span>
    </ul>
   <li><a href="#width">width</a><span>, in §2</span>
   <li><a href="#valdef-font-size-absolute-size-x-large">x-large</a><span>, in §3.5</span>
   <li><a href="#valdef-font-size-absolute-size-x-small">x-small</a><span>, in §3.5</span>
   <li><a href="#valdef-font-size-absolute-size-xx-large">xx-large</a><span>, in §3.5</span>
   <li><a href="#valdef-font-size-absolute-size-xx-small">xx-small</a><span>, in §3.5</span>
  </ul>
  <aside class="dfn-panel" data-for="term-for-dom-credentialscontainer-get">
   <a href="https://w3c.github.io/webappsec-credential-management/#dom-credentialscontainer-get">https://w3c.github.io/webappsec-credential-management/#dom-credentialscontainer-get</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-credentialscontainer-get">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valdef-all-inherit">
   <a href="https://drafts.csswg.org/css-cascade-4/#valdef-all-inherit">https://drafts.csswg.org/css-cascade-4/#valdef-all-inherit</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-all-inherit">3.1. Font family: the font-family property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valdef-all-initial">
   <a href="https://drafts.csswg.org/css-cascade-4/#valdef-all-initial">https://drafts.csswg.org/css-cascade-4/#valdef-all-initial</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-all-initial">3.1. Font family: the font-family property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-family-name-value">
   <a href="https://drafts.csswg.org/css-fonts-4/#family-name-value">https://drafts.csswg.org/css-fonts-4/#family-name-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-family-name-value">3.1. Font family: the font-family property</a> <a href="#ref-for-family-name-value①">(2)</a>
    <li><a href="#ref-for-family-name-value②">4.2. Font family: the font-family descriptor</a>
    <li><a href="#ref-for-family-name-value③">4.3. Font reference: the src descriptor</a> <a href="#ref-for-family-name-value④">(2)</a> <a href="#ref-for-family-name-value⑤">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valdef-leading-trim-over-ex">
   <a href="https://drafts.csswg.org/css-inline-3/#valdef-leading-trim-over-ex">https://drafts.csswg.org/css-inline-3/#valdef-leading-trim-over-ex</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-leading-trim-over-ex">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-valdef-cursor-default">
   <a href="https://drafts.csswg.org/css-ui-4/#valdef-cursor-default">https://drafts.csswg.org/css-ui-4/#valdef-cursor-default</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-cursor-default">3.1. Font family: the font-family property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-integer-value">
   <a href="https://drafts.csswg.org/css-values-3/#integer-value">https://drafts.csswg.org/css-values-3/#integer-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-integer-value">6.12. Low-level font feature settings control: the font-feature-settings property</a> <a href="#ref-for-integer-value①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-number-value">
   <a href="https://drafts.csswg.org/css-values-3/#number-value">https://drafts.csswg.org/css-values-3/#number-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-number-value">3.6. Relative sizing: the font-size-adjust property</a> <a href="#ref-for-number-value①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-string-value">
   <a href="https://drafts.csswg.org/css-values-3/#string-value">https://drafts.csswg.org/css-values-3/#string-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-string-value">4.3. Font reference: the src descriptor</a>
    <li><a href="#ref-for-string-value①">6.12. Low-level font feature settings control: the font-feature-settings property</a> <a href="#ref-for-string-value②">(2)</a>
    <li><a href="#ref-for-string-value③">6.13. Font language override: the font-language-override property</a> <a href="#ref-for-string-value④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-url-value">
   <a href="https://drafts.csswg.org/css-values-3/#url-value">https://drafts.csswg.org/css-values-3/#url-value</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-url-value">4.3. Font reference: the src descriptor</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-mult-comma">
   <a href="https://drafts.csswg.org/css-values-4/#mult-comma">https://drafts.csswg.org/css-values-4/#mult-comma</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-mult-comma">3.1. Font family: the font-family property</a>
    <li><a href="#ref-for-mult-comma①">4.3. Font reference: the src descriptor</a> <a href="#ref-for-mult-comma②">(2)</a>
    <li><a href="#ref-for-mult-comma③">4.5. Character range: the unicode-range descriptor</a>
    <li><a href="#ref-for-mult-comma④">4.7. Font features: the font-variant and font-feature-settings descriptors</a> <a href="#ref-for-mult-comma⑤">(2)</a> <a href="#ref-for-mult-comma⑥">(3)</a>
    <li><a href="#ref-for-mult-comma⑦">6.8. Alternates and swashes: the font-variant-alternates property</a> <a href="#ref-for-mult-comma⑧">(2)</a>
    <li><a href="#ref-for-mult-comma⑨">6.11. Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-mult-comma①⓪">(2)</a>
    <li><a href="#ref-for-mult-comma①①">6.12. Low-level font feature settings control: the font-feature-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-typedef-length-percentage">
   <a href="https://drafts.csswg.org/css-values-4/#typedef-length-percentage">https://drafts.csswg.org/css-values-4/#typedef-length-percentage</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-length-percentage">3.5. Font size: the font-size property</a> <a href="#ref-for-typedef-length-percentage①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-mult-opt">
   <a href="https://drafts.csswg.org/css-values-4/#mult-opt">https://drafts.csswg.org/css-values-4/#mult-opt</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-mult-opt">3.7. Shorthand font property: the font property</a> <a href="#ref-for-mult-opt①">(2)</a>
    <li><a href="#ref-for-mult-opt②">4.3. Font reference: the src descriptor</a>
    <li><a href="#ref-for-mult-opt③">6.12. Low-level font feature settings control: the font-feature-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-ch">
   <a href="https://drafts.csswg.org/css-values-4/#ch">https://drafts.csswg.org/css-values-4/#ch</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-ch">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-em">
   <a href="https://drafts.csswg.org/css-values-4/#em">https://drafts.csswg.org/css-values-4/#em</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-em">3.5. Font size: the font-size property</a>
    <li><a href="#ref-for-em①">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-font-relative-length">
   <a href="https://drafts.csswg.org/css-values-4/#font-relative-length">https://drafts.csswg.org/css-values-4/#font-relative-length</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-relative-length">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-css-identifier">
   <a href="https://drafts.csswg.org/css-values-4/#css-identifier">https://drafts.csswg.org/css-values-4/#css-identifier</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-css-identifier">6.9.1. Basic syntax</a> <a href="#ref-for-css-identifier①">(2)</a> <a href="#ref-for-css-identifier②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-number">
   <a href="https://drafts.csswg.org/css-values-4/#number">https://drafts.csswg.org/css-values-4/#number</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-number">6.9.1. Basic syntax</a> <a href="#ref-for-number①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-string">
   <a href="https://drafts.csswg.org/css-values-4/#string">https://drafts.csswg.org/css-values-4/#string</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-string">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-comb-one">
   <a href="https://drafts.csswg.org/css-values-4/#comb-one">https://drafts.csswg.org/css-values-4/#comb-one</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-comb-one">3.1. Font family: the font-family property</a>
    <li><a href="#ref-for-comb-one①">3.1.1. Generic font families</a> <a href="#ref-for-comb-one②">(2)</a> <a href="#ref-for-comb-one③">(3)</a> <a href="#ref-for-comb-one④">(4)</a>
    <li><a href="#ref-for-comb-one⑤">3.2. Font weight: the font-weight property</a> <a href="#ref-for-comb-one⑥">(2)</a> <a href="#ref-for-comb-one⑦">(3)</a> <a href="#ref-for-comb-one⑧">(4)</a> <a href="#ref-for-comb-one⑨">(5)</a> <a href="#ref-for-comb-one①⓪">(6)</a> <a href="#ref-for-comb-one①①">(7)</a> <a href="#ref-for-comb-one①②">(8)</a> <a href="#ref-for-comb-one①③">(9)</a> <a href="#ref-for-comb-one①④">(10)</a> <a href="#ref-for-comb-one①⑤">(11)</a> <a href="#ref-for-comb-one①⑥">(12)</a>
    <li><a href="#ref-for-comb-one①⑦">3.3. Font width: the font-stretch property</a> <a href="#ref-for-comb-one①⑧">(2)</a> <a href="#ref-for-comb-one①⑨">(3)</a> <a href="#ref-for-comb-one②⓪">(4)</a> <a href="#ref-for-comb-one②①">(5)</a> <a href="#ref-for-comb-one②②">(6)</a> <a href="#ref-for-comb-one②③">(7)</a> <a href="#ref-for-comb-one②④">(8)</a>
    <li><a href="#ref-for-comb-one②⑤">3.4. Font style: the font-style property</a> <a href="#ref-for-comb-one②⑥">(2)</a>
    <li><a href="#ref-for-comb-one②⑦">3.5. Font size: the font-size property</a> <a href="#ref-for-comb-one②⑧">(2)</a> <a href="#ref-for-comb-one②⑨">(3)</a> <a href="#ref-for-comb-one③⓪">(4)</a> <a href="#ref-for-comb-one③①">(5)</a> <a href="#ref-for-comb-one③②">(6)</a> <a href="#ref-for-comb-one③③">(7)</a> <a href="#ref-for-comb-one③④">(8)</a> <a href="#ref-for-comb-one③⑤">(9)</a>
    <li><a href="#ref-for-comb-one③⑥">3.6. Relative sizing: the font-size-adjust property</a>
    <li><a href="#ref-for-comb-one③⑦">3.7. Shorthand font property: the font property</a> <a href="#ref-for-comb-one③⑧">(2)</a> <a href="#ref-for-comb-one③⑨">(3)</a> <a href="#ref-for-comb-one④⓪">(4)</a> <a href="#ref-for-comb-one④①">(5)</a> <a href="#ref-for-comb-one④②">(6)</a> <a href="#ref-for-comb-one④③">(7)</a>
    <li><a href="#ref-for-comb-one④④">3.8. Controlling synthetic faces: the font-synthesis property</a>
    <li><a href="#ref-for-comb-one④⑤">4.3. Font reference: the src descriptor</a>
    <li><a href="#ref-for-comb-one④⑥">4.4. 
Font property descriptors: the font-style, font-weight, font-stretch descriptors</a> <a href="#ref-for-comb-one④⑦">(2)</a> <a href="#ref-for-comb-one④⑧">(3)</a> <a href="#ref-for-comb-one④⑨">(4)</a> <a href="#ref-for-comb-one⑤⓪">(5)</a> <a href="#ref-for-comb-one⑤①">(6)</a> <a href="#ref-for-comb-one⑤②">(7)</a> <a href="#ref-for-comb-one⑤③">(8)</a> <a href="#ref-for-comb-one⑤④">(9)</a> <a href="#ref-for-comb-one⑤⑤">(10)</a> <a href="#ref-for-comb-one⑤⑥">(11)</a> <a href="#ref-for-comb-one⑤⑦">(12)</a> <a href="#ref-for-comb-one⑤⑧">(13)</a> <a href="#ref-for-comb-one⑤⑨">(14)</a> <a href="#ref-for-comb-one⑥⓪">(15)</a> <a href="#ref-for-comb-one⑥①">(16)</a> <a href="#ref-for-comb-one⑥②">(17)</a> <a href="#ref-for-comb-one⑥③">(18)</a> <a href="#ref-for-comb-one⑥④">(19)</a> <a href="#ref-for-comb-one⑥⑤">(20)</a>
    <li><a href="#ref-for-comb-one⑥⑥">4.7. Font features: the font-variant and font-feature-settings descriptors</a> <a href="#ref-for-comb-one⑥⑦">(2)</a> <a href="#ref-for-comb-one⑥⑧">(3)</a> <a href="#ref-for-comb-one⑥⑨">(4)</a> <a href="#ref-for-comb-one⑦⓪">(5)</a> <a href="#ref-for-comb-one⑦①">(6)</a> <a href="#ref-for-comb-one⑦②">(7)</a> <a href="#ref-for-comb-one⑦③">(8)</a>
    <li><a href="#ref-for-comb-one⑦④">6.3. Kerning: the font-kerning property</a> <a href="#ref-for-comb-one⑦⑤">(2)</a>
    <li><a href="#ref-for-comb-one⑦⑥">6.4. Ligatures: the font-variant-ligatures property</a> <a href="#ref-for-comb-one⑦⑦">(2)</a> <a href="#ref-for-comb-one⑦⑧">(3)</a> <a href="#ref-for-comb-one⑦⑨">(4)</a> <a href="#ref-for-comb-one⑧⓪">(5)</a> <a href="#ref-for-comb-one⑧①">(6)</a> <a href="#ref-for-comb-one⑧②">(7)</a> <a href="#ref-for-comb-one⑧③">(8)</a> <a href="#ref-for-comb-one⑧④">(9)</a>
    <li><a href="#ref-for-comb-one⑧⑤">6.5. Subscript and superscript forms: the font-variant-position property</a> <a href="#ref-for-comb-one⑧⑥">(2)</a>
    <li><a href="#ref-for-comb-one⑧⑦">6.6. Capitalization: the font-variant-caps property</a> <a href="#ref-for-comb-one⑧⑧">(2)</a> <a href="#ref-for-comb-one⑧⑨">(3)</a> <a href="#ref-for-comb-one⑨⓪">(4)</a> <a href="#ref-for-comb-one⑨①">(5)</a> <a href="#ref-for-comb-one⑨②">(6)</a>
    <li><a href="#ref-for-comb-one⑨③">6.7. Numerical formatting: the font-variant-numeric property</a> <a href="#ref-for-comb-one⑨④">(2)</a> <a href="#ref-for-comb-one⑨⑤">(3)</a> <a href="#ref-for-comb-one⑨⑥">(4)</a>
    <li><a href="#ref-for-comb-one⑨⑦">6.8. Alternates and swashes: the font-variant-alternates property</a>
    <li><a href="#ref-for-comb-one⑨⑧">6.10. East Asian text rendering: the font-variant-east-asian property</a> <a href="#ref-for-comb-one⑨⑨">(2)</a> <a href="#ref-for-comb-one①⓪⓪">(3)</a> <a href="#ref-for-comb-one①⓪①">(4)</a> <a href="#ref-for-comb-one①⓪②">(5)</a> <a href="#ref-for-comb-one①⓪③">(6)</a> <a href="#ref-for-comb-one①⓪④">(7)</a>
    <li><a href="#ref-for-comb-one①⓪⑤">6.11. Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-comb-one①⓪⑥">(2)</a> <a href="#ref-for-comb-one①⓪⑦">(3)</a> <a href="#ref-for-comb-one①⓪⑧">(4)</a> <a href="#ref-for-comb-one①⓪⑨">(5)</a> <a href="#ref-for-comb-one①①⓪">(6)</a> <a href="#ref-for-comb-one①①①">(7)</a>
    <li><a href="#ref-for-comb-one①①②">6.12. Low-level font feature settings control: the font-feature-settings property</a> <a href="#ref-for-comb-one①①③">(2)</a> <a href="#ref-for-comb-one①①④">(3)</a>
    <li><a href="#ref-for-comb-one①①⑤">6.13. Font language override: the font-language-override property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-comb-any">
   <a href="https://drafts.csswg.org/css-values-4/#comb-any">https://drafts.csswg.org/css-values-4/#comb-any</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-comb-any">3.7. Shorthand font property: the font property</a> <a href="#ref-for-comb-any①">(2)</a> <a href="#ref-for-comb-any②">(3)</a>
    <li><a href="#ref-for-comb-any③">3.8. Controlling synthetic faces: the font-synthesis property</a>
    <li><a href="#ref-for-comb-any④">4.7. Font features: the font-variant and font-feature-settings descriptors</a> <a href="#ref-for-comb-any⑤">(2)</a> <a href="#ref-for-comb-any⑥">(3)</a> <a href="#ref-for-comb-any⑦">(4)</a> <a href="#ref-for-comb-any⑧">(5)</a> <a href="#ref-for-comb-any⑨">(6)</a> <a href="#ref-for-comb-any①⓪">(7)</a> <a href="#ref-for-comb-any①①">(8)</a> <a href="#ref-for-comb-any①②">(9)</a> <a href="#ref-for-comb-any①③">(10)</a> <a href="#ref-for-comb-any①④">(11)</a> <a href="#ref-for-comb-any①⑤">(12)</a> <a href="#ref-for-comb-any①⑥">(13)</a> <a href="#ref-for-comb-any①⑦">(14)</a> <a href="#ref-for-comb-any①⑧">(15)</a> <a href="#ref-for-comb-any①⑨">(16)</a> <a href="#ref-for-comb-any②⓪">(17)</a> <a href="#ref-for-comb-any②①">(18)</a> <a href="#ref-for-comb-any②②">(19)</a>
    <li><a href="#ref-for-comb-any②③">6.7. Numerical formatting: the font-variant-numeric property</a> <a href="#ref-for-comb-any②④">(2)</a> <a href="#ref-for-comb-any②⑤">(3)</a> <a href="#ref-for-comb-any②⑥">(4)</a>
    <li><a href="#ref-for-comb-any②⑦">6.8. Alternates and swashes: the font-variant-alternates property</a> <a href="#ref-for-comb-any②⑧">(2)</a> <a href="#ref-for-comb-any②⑨">(3)</a> <a href="#ref-for-comb-any③⓪">(4)</a> <a href="#ref-for-comb-any③①">(5)</a> <a href="#ref-for-comb-any③②">(6)</a>
    <li><a href="#ref-for-comb-any③③">6.10. East Asian text rendering: the font-variant-east-asian property</a> <a href="#ref-for-comb-any③④">(2)</a>
    <li><a href="#ref-for-comb-any③⑤">6.11. Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-comb-any③⑥">(2)</a> <a href="#ref-for-comb-any③⑦">(3)</a> <a href="#ref-for-comb-any③⑧">(4)</a> <a href="#ref-for-comb-any③⑨">(5)</a> <a href="#ref-for-comb-any④⓪">(6)</a> <a href="#ref-for-comb-any④①">(7)</a> <a href="#ref-for-comb-any④②">(8)</a> <a href="#ref-for-comb-any④③">(9)</a> <a href="#ref-for-comb-any④④">(10)</a> <a href="#ref-for-comb-any④⑤">(11)</a> <a href="#ref-for-comb-any④⑥">(12)</a> <a href="#ref-for-comb-any④⑦">(13)</a> <a href="#ref-for-comb-any④⑧">(14)</a> <a href="#ref-for-comb-any④⑨">(15)</a> <a href="#ref-for-comb-any⑤⓪">(16)</a> <a href="#ref-for-comb-any⑤①">(17)</a> <a href="#ref-for-comb-any⑤②">(18)</a> <a href="#ref-for-comb-any⑤③">(19)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-line-height">
   <a href="https://drafts.csswg.org/css2/visudet.html#propdef-line-height">https://drafts.csswg.org/css2/visudet.html#propdef-line-height</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-line-height">3.6. Relative sizing: the font-size-adjust property</a> <a href="#ref-for-propdef-line-height①">(2)</a> <a href="#ref-for-propdef-line-height②">(3)</a>
    <li><a href="#ref-for-propdef-line-height③">3.7. Shorthand font property: the font property</a> <a href="#ref-for-propdef-line-height④">(2)</a> <a href="#ref-for-propdef-line-height⑤">(3)</a>
    <li><a href="#ref-for-propdef-line-height⑥"> Changes from the July 2013 CSS3 Fonts Last Call Working Draft</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-letter-spacing">
   <a href="https://drafts.csswg.org/css-text-3/#propdef-letter-spacing">https://drafts.csswg.org/css-text-3/#propdef-letter-spacing</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-letter-spacing">6.3. Kerning: the font-kerning property</a>
    <li><a href="#ref-for-propdef-letter-spacing①">7.2. Feature precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-propdef-text-transform">
   <a href="https://drafts.csswg.org/css-text-3/#propdef-text-transform">https://drafts.csswg.org/css-text-3/#propdef-text-transform</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-text-transform">6.6. Capitalization: the font-variant-caps property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-cssomstring">
   <a href="https://drafts.csswg.org/cssom-1/#cssomstring">https://drafts.csswg.org/cssom-1/#cssomstring</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssomstring">8.1. The CSSFontFaceRule interface</a> <a href="#ref-for-cssomstring①">(2)</a> <a href="#ref-for-cssomstring②">(3)</a> <a href="#ref-for-cssomstring③">(4)</a> <a href="#ref-for-cssomstring④">(5)</a> <a href="#ref-for-cssomstring⑤">(6)</a> <a href="#ref-for-cssomstring⑥">(7)</a> <a href="#ref-for-cssomstring⑦">(8)</a>
    <li><a href="#ref-for-cssomstring⑧">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-cssomstring⑨">(2)</a> <a href="#ref-for-cssomstring①⓪">(3)</a> <a href="#ref-for-cssomstring①①">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-cssrule">
   <a href="https://drafts.csswg.org/cssom-1/#cssrule">https://drafts.csswg.org/cssom-1/#cssrule</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssrule">8.1. The CSSFontFaceRule interface</a>
    <li><a href="#ref-for-cssrule①">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-cssrule②">(2)</a> <a href="#ref-for-cssrule③">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-document-language">
   <a href="https://drafts.csswg.org/selectors-4/#document-language">https://drafts.csswg.org/selectors-4/#document-language</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-document-language">6.2. Language-specific display</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-invalidaccesserror">
   <a href="https://heycam.github.io/webidl/#invalidaccesserror">https://heycam.github.io/webidl/#invalidaccesserror</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-invalidaccesserror">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-idl-unsigned-long">
   <a href="https://heycam.github.io/webidl/#idl-unsigned-long">https://heycam.github.io/webidl/#idl-unsigned-long</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-idl-unsigned-long">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-idl-unsigned-long①">(2)</a> <a href="#ref-for-idl-unsigned-long②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="term-for-idl-unsigned-short">
   <a href="https://heycam.github.io/webidl/#idl-unsigned-short">https://heycam.github.io/webidl/#idl-unsigned-short</a><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-idl-unsigned-short">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <h3 class="no-num no-ref heading settled" id="index-defined-elsewhere"><span class="content">Terms defined by reference</span><a class="self-link" href="#index-defined-elsewhere"></a></h3>
  <ul class="index">
   <li>
    <a data-link-type="biblio">[credential-management-1]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-dom-credentialscontainer-get" style="color:initial">get()</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-cascade-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-valdef-all-inherit" style="color:initial">inherit</span>
     <li><span class="dfn-paneled" id="term-for-valdef-all-initial" style="color:initial">initial</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-fonts-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-family-name-value" style="color:initial">&lt;family-name></span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-inline-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-valdef-leading-trim-over-ex" style="color:initial">ex</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-ui-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-valdef-cursor-default" style="color:initial">default</span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-values-3]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-integer-value" style="color:initial">&lt;integer></span>
     <li><span class="dfn-paneled" id="term-for-number-value" style="color:initial">&lt;number></span>
     <li><span class="dfn-paneled" id="term-for-string-value" style="color:initial">&lt;string></span>
     <li><span class="dfn-paneled" id="term-for-url-value" style="color:initial">&lt;url></span>
    </ul>
   <li>
    <a data-link-type="biblio">[css-values-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-mult-comma" style="color:initial">#</span>
     <li><span class="dfn-paneled" id="term-for-typedef-length-percentage" style="color:initial">&lt;length-percentage></span>
     <li><span class="dfn-paneled" id="term-for-mult-opt" style="color:initial">?</span>
     <li><span class="dfn-paneled" id="term-for-ch" style="color:initial">ch</span>
     <li><span class="dfn-paneled" id="term-for-em" style="color:initial">em</span>
     <li><span class="dfn-paneled" id="term-for-font-relative-length" style="color:initial">font-relative lengths</span>
     <li><span class="dfn-paneled" id="term-for-css-identifier" style="color:initial">ident</span>
     <li><span class="dfn-paneled" id="term-for-number" style="color:initial">number</span>
     <li><span class="dfn-paneled" id="term-for-string" style="color:initial">string</span>
     <li><span class="dfn-paneled" id="term-for-comb-one" style="color:initial">|</span>
     <li><span class="dfn-paneled" id="term-for-comb-any" style="color:initial">||</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS2]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-line-height" style="color:initial">line-height</span>
    </ul>
   <li>
    <a data-link-type="biblio">[CSS3TEXT]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-propdef-letter-spacing" style="color:initial">letter-spacing</span>
     <li><span class="dfn-paneled" id="term-for-propdef-text-transform" style="color:initial">text-transform</span>
    </ul>
   <li>
    <a data-link-type="biblio">[cssom-1]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-cssomstring" style="color:initial">CSSOMString</span>
     <li><span class="dfn-paneled" id="term-for-cssrule" style="color:initial">CSSRule</span>
    </ul>
   <li>
    <a data-link-type="biblio">[selectors-4]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-document-language" style="color:initial">document language</span>
    </ul>
   <li>
    <a data-link-type="biblio">[WebIDL]</a> defines the following terms:
    <ul>
     <li><span class="dfn-paneled" id="term-for-invalidaccesserror" style="color:initial">InvalidAccessError</span>
     <li><span class="dfn-paneled" id="term-for-idl-unsigned-long" style="color:initial">unsigned long</span>
     <li><span class="dfn-paneled" id="term-for-idl-unsigned-short" style="color:initial">unsigned short</span>
    </ul>
  </ul>
  <h2 class="no-num no-ref heading settled" id="references"><span class="content">References</span><a class="self-link" href="#references"></a></h2>
  <h3 class="no-num no-ref heading settled" id="normative"><span class="content">Normative References</span><a class="self-link" href="#normative"></a></h3>
  <dl>
   <dt id="biblio-credential-management-1">[CREDENTIAL-MANAGEMENT-1]
   <dd>Mike West. <a href="https://www.w3.org/TR/credential-management-1/">Credential Management Level 1</a>. 17 January 2019. WD. URL: <a href="https://www.w3.org/TR/credential-management-1/">https://www.w3.org/TR/credential-management-1/</a>
   <dt id="biblio-css-cascade-4">[CSS-CASCADE-4]
   <dd>Elika Etemad; Tab Atkins Jr.. <a href="https://www.w3.org/TR/css-cascade-4/">CSS Cascading and Inheritance Level 4</a>. 28 August 2018. CR. URL: <a href="https://www.w3.org/TR/css-cascade-4/">https://www.w3.org/TR/css-cascade-4/</a>
   <dt id="biblio-css-fonts-4">[CSS-FONTS-4]
   <dd>John Daggett; Myles Maxfield; Chris Lilley. <a href="https://www.w3.org/TR/css-fonts-4/">CSS Fonts Module Level 4</a>. 20 September 2018. WD. URL: <a href="https://www.w3.org/TR/css-fonts-4/">https://www.w3.org/TR/css-fonts-4/</a>
   <dt id="biblio-css-inline-3">[CSS-INLINE-3]
   <dd>Dave Cramer; Elika Etemad; Steve Zilles. <a href="https://www.w3.org/TR/css-inline-3/">CSS Inline Layout Module Level 3</a>. 8 August 2018. WD. URL: <a href="https://www.w3.org/TR/css-inline-3/">https://www.w3.org/TR/css-inline-3/</a>
   <dt id="biblio-css-ui-4">[CSS-UI-4]
   <dd>Florian Rivoal. <a href="https://www.w3.org/TR/css-ui-4/">CSS Basic User Interface Module Level 4</a>. 22 December 2017. WD. URL: <a href="https://www.w3.org/TR/css-ui-4/">https://www.w3.org/TR/css-ui-4/</a>
   <dt id="biblio-css-values-3">[CSS-VALUES-3]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-values-3/">CSS Values and Units Module Level 3</a>. 31 January 2019. CR. URL: <a href="https://www.w3.org/TR/css-values-3/">https://www.w3.org/TR/css-values-3/</a>
   <dt id="biblio-css-values-4">[CSS-VALUES-4]
   <dd>Tab Atkins Jr.; Elika Etemad. <a href="https://www.w3.org/TR/css-values-4/">CSS Values and Units Module Level 4</a>. 31 January 2019. WD. URL: <a href="https://www.w3.org/TR/css-values-4/">https://www.w3.org/TR/css-values-4/</a>
   <dt id="biblio-css2">[CSS2]
   <dd>Bert Bos; et al. <a href="https://www.w3.org/TR/CSS2/">Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification</a>. 7 June 2011. REC. URL: <a href="https://www.w3.org/TR/CSS2/">https://www.w3.org/TR/CSS2/</a>
   <dt id="biblio-css3text">[CSS3TEXT]
   <dd>Elika Etemad; Koji Ishii; Florian Rivoal. <a href="https://www.w3.org/TR/css-text-3/">CSS Text Module Level 3</a>. 12 December 2018. WD. URL: <a href="https://www.w3.org/TR/css-text-3/">https://www.w3.org/TR/css-text-3/</a>
   <dt id="biblio-cssom-1">[CSSOM-1]
   <dd>Simon Pieters; Glenn Adams. <a href="https://www.w3.org/TR/cssom-1/">CSS Object Model (CSSOM)</a>. 17 March 2016. WD. URL: <a href="https://www.w3.org/TR/cssom-1/">https://www.w3.org/TR/cssom-1/</a>
   <dt id="biblio-html5">[HTML5]
   <dd>Ian Hickson; et al. <a href="https://www.w3.org/TR/html5/">HTML5</a>. 27 March 2018. REC. URL: <a href="https://www.w3.org/TR/html5/">https://www.w3.org/TR/html5/</a>
   <dt id="biblio-opentype">[OPENTYPE]
   <dd><a href="http://www.microsoft.com/typography/otspec/default.htm">OpenType specification</a>. URL: <a href="http://www.microsoft.com/typography/otspec/default.htm">http://www.microsoft.com/typography/otspec/default.htm</a>
   <dt id="biblio-opentype-features">[OPENTYPE-FEATURES]
   <dd><a href="http://www.microsoft.com/typography/otspec/featurelist.htm">OpenType feature registry</a>. URL: <a href="http://www.microsoft.com/typography/otspec/featurelist.htm">http://www.microsoft.com/typography/otspec/featurelist.htm</a>
   <dt id="biblio-rfc2119">[RFC2119]
   <dd>S. Bradner. <a href="https://tools.ietf.org/html/rfc2119">Key words for use in RFCs to Indicate Requirement Levels</a>. March 1997. Best Current Practice. URL: <a href="https://tools.ietf.org/html/rfc2119">https://tools.ietf.org/html/rfc2119</a>
   <dt id="biblio-selectors-4">[SELECTORS-4]
   <dd>Elika Etemad; Tab Atkins Jr.. <a href="https://www.w3.org/TR/selectors-4/">Selectors Level 4</a>. 21 November 2018. WD. URL: <a href="https://www.w3.org/TR/selectors-4/">https://www.w3.org/TR/selectors-4/</a>
   <dt id="biblio-unicode">[UNICODE]
   <dd><a href="https://www.unicode.org/versions/latest/">The Unicode Standard</a>. URL: <a href="https://www.unicode.org/versions/latest/">https://www.unicode.org/versions/latest/</a>
   <dt id="biblio-webidl">[WebIDL]
   <dd>Boris Zbarsky. <a href="https://heycam.github.io/webidl/">Web IDL</a>. 15 December 2016. ED. URL: <a href="https://heycam.github.io/webidl/">https://heycam.github.io/webidl/</a>
  </dl>
  <h3 class="no-num no-ref heading settled" id="informative"><span class="content">Informative References</span><a class="self-link" href="#informative"></a></h3>
  <dl>
   <dt id="biblio-charmod-norm">[CHARMOD-NORM]
   <dd>Addison Phillips; et al. <a href="https://www.w3.org/TR/charmod-norm/">Character Model for the World Wide Web: String Matching</a>. 4 February 2019. NOTE. URL: <a href="https://www.w3.org/TR/charmod-norm/">https://www.w3.org/TR/charmod-norm/</a>
   <dt id="biblio-css3-conditional">[CSS3-CONDITIONAL]
   <dd>David Baron. <a href="https://www.w3.org/TR/css3-conditional/">CSS Conditional Rules Module Level 3</a>. 4 April 2013. CR. URL: <a href="https://www.w3.org/TR/css3-conditional/">https://www.w3.org/TR/css3-conditional/</a>
   <dt id="biblio-dom-level-2-style">[DOM-LEVEL-2-STYLE]
   <dd>Chris Wilson; Philippe Le Hégaret. <a href="https://www.w3.org/TR/DOM-Level-2-Style/">Document Object Model (DOM) Level 2 Style Specification</a>. 13 November 2000. REC. URL: <a href="https://www.w3.org/TR/DOM-Level-2-Style/">https://www.w3.org/TR/DOM-Level-2-Style/</a>
   <dt id="biblio-opentype-font-guide">[OPENTYPE-FONT-GUIDE]
   <dd><a href="https://www.fontfont.com/staticcontent/downloads/FF_OT_User_Guide.pdf">OpenType User Guide</a>. URL: <a href="https://www.fontfont.com/staticcontent/downloads/FF_OT_User_Guide.pdf">https://www.fontfont.com/staticcontent/downloads/FF_OT_User_Guide.pdf</a>
   <dt id="biblio-windows-glyph-proc">[WINDOWS-GLYPH-PROC]
   <dd>John Hudson. <a href="http://www.microsoft.com/typography/developers/opentype/default.htm">Windows Glyph Processing</a>. URL: <a href="http://www.microsoft.com/typography/developers/opentype/default.htm">http://www.microsoft.com/typography/developers/opentype/default.htm</a>
  </dl>
  <h2 class="no-num no-ref heading settled" id="property-index"><span class="content">Property Index</span><a class="self-link" href="#property-index"></a></h2>
  <div class="big-element-wrapper">
   <table class="index">
    <thead>
     <tr>
      <th scope="col">Name
      <th scope="col">Value
      <th scope="col">Initial
      <th scope="col">Applies to
      <th scope="col">Inh.
      <th scope="col">%ages
      <th scope="col">Ani­mat­able
      <th scope="col">Anim­ation type
      <th scope="col">Canonical order
      <th scope="col">Com­puted value
    <tbody>
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font" id="ref-for-propdef-font⑥">font</a>
      <td>[ [ &lt;'font-style'> || &lt;font-variant-css21> || &lt;'font-weight'> || &lt;'font-stretch'> ]?
&lt;'font-size'> [ / &lt;'line-height'> ]? &lt;'font-family'> ]
| caption | icon | menu | message-box | small-caption | status-bar
      <td>see individual properties
      <td>see individual properties
      <td>see individual properties
      <td>see individual properties
      <td>
      <td>see individual properties
      <td>per grammar
      <td>see individual properties
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-family" id="ref-for-propdef-font-family①④">font-family</a>
      <td>[ &lt;family-name> | &lt;generic-family> ]#
      <td>depends on user agent
      <td>all elements
      <td>yes
      <td>n/a
      <td>no
      <td>
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-feature-settings" id="ref-for-propdef-font-feature-settings">font-feature-settings</a>
      <td>normal | &lt;feature-tag-value>#
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-kerning" id="ref-for-propdef-font-kerning④">font-kerning</a>
      <td>auto | normal | none
      <td>auto
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-language-override" id="ref-for-propdef-font-language-override⑦">font-language-override</a>
      <td>normal | &lt;string>
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-size" id="ref-for-propdef-font-size①⑤">font-size</a>
      <td>&lt;absolute-size> | &lt;relative-size> | &lt;length-percentage>
      <td>medium
      <td>all elements
      <td>yes
      <td>refer to parent element’s font size
      <td>as length
      <td>
      <td>per grammar
      <td>absolute length
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-size-adjust" id="ref-for-propdef-font-size-adjust①⑦">font-size-adjust</a>
      <td>none | &lt;number>
      <td>none
      <td>all elements
      <td>yes
      <td>n/a
      <td>as number
      <td>
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-stretch" id="ref-for-propdef-font-stretch①①">font-stretch</a>
      <td>normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>as font stretch
      <td>
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-style" id="ref-for-propdef-font-style①①">font-style</a>
      <td>normal | italic | oblique
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>no
      <td>
      <td>per grammar
      <td>as specifed
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-synthesis" id="ref-for-propdef-font-synthesis⑤">font-synthesis</a>
      <td>none | [ weight || style ]
      <td>weight style
      <td>all elements
      <td>yes
      <td>n/a
      <td>no
      <td>
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant" id="ref-for-propdef-font-variant">font-variant</a>
      <td>normal | none |
[
&lt;common-lig-values> || &lt;discretionary-lig-values> || &lt;historical-lig-values> || &lt;contextual-alt-values> ||
stylistic(&lt;feature-value-name>) || historical-forms || styleset(&lt;feature-value-name>#) ||
character-variant(&lt;feature-value-name>#) || swash(&lt;feature-value-name>) || ornaments(&lt;feature-value-name>) ||
annotation(&lt;feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] ||
&lt;numeric-figure-values> || &lt;numeric-spacing-values> || &lt;numeric-fraction-values> || ordinal || slashed-zero ||
&lt;east-asian-variant-values> || &lt;east-asian-width-values> || ruby
]
      <td>see individual properties
      <td>see individual properties
      <td>see individual properties
      <td>see individual properties
      <td>
      <td>see individual properties
      <td>per grammar
      <td>see individual properties
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-alternates" id="ref-for-propdef-font-variant-alternates⑤">font-variant-alternates</a>
      <td>normal |
[
stylistic(&lt;feature-value-name>) || historical-forms || styleset(&lt;feature-value-name>#) ||
character-variant(&lt;feature-value-name>#) || swash(&lt;feature-value-name>) || ornaments(&lt;feature-value-name>) ||
annotation(&lt;feature-value-name>)
]
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-caps" id="ref-for-propdef-font-variant-caps①">font-variant-caps</a>
      <td>normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-east-asian" id="ref-for-propdef-font-variant-east-asian①">font-variant-east-asian</a>
      <td>normal | [ &lt;east-asian-variant-values> || &lt;east-asian-width-values> || ruby ]
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-ligatures" id="ref-for-propdef-font-variant-ligatures⑤">font-variant-ligatures</a>
      <td>normal | none | &lt;common-lig-values> | &lt;discretionary-lig-values> | &lt;historical-lig-values> | &lt;contextual-alt-values>
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-numeric" id="ref-for-propdef-font-variant-numeric①">font-variant-numeric</a>
      <td>normal | [ &lt;numeric-figure-values> || &lt;numeric-spacing-values> || &lt;numeric-fraction-values> || ordinal || slashed-zero ]
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-variant-position" id="ref-for-propdef-font-variant-position⑤">font-variant-position</a>
      <td>normal | sub | super
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>
      <td>discrete
      <td>per grammar
      <td>as specified
     <tr>
      <th scope="row"><a class="css" data-link-type="property" href="#propdef-font-weight" id="ref-for-propdef-font-weight①②">font-weight</a>
      <td>normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
      <td>normal
      <td>all elements
      <td>yes
      <td>n/a
      <td>as font weight
      <td>
      <td>per grammar
      <td>numeric weight value (see description)
   </table>
  </div>
  <h3 class="no-num no-ref heading settled" id="font-face-descriptor-table"><span class="content"><a class="css" data-link-type="at-rule" href="#at-ruledef-font-face" id="ref-for-at-ruledef-font-face⑤⑧">@font-face</a> Descriptors</span><a class="self-link" href="#font-face-descriptor-table"></a></h3>
  <div class="big-element-wrapper">
   <table class="index">
    <thead>
     <tr>
      <th scope="col">Name
      <th scope="col">Value
      <th scope="col">Initial
    <tbody>
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-family" id="ref-for-descdef-font-face-font-family">font-family</a>
      <td>&lt;family-name>
      <td>n/a (required)
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-feature-settings" id="ref-for-descdef-font-face-font-feature-settings①⓪">font-feature-settings</a>
      <td>normal | &lt;feature-tag-value>#
      <td>normal
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-stretch" id="ref-for-descdef-font-face-font-stretch">font-stretch</a>
      <td>normal | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded
      <td>normal
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-style" id="ref-for-descdef-font-face-font-style">font-style</a>
      <td>normal | italic | oblique
      <td>normal
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-variant" id="ref-for-descdef-font-face-font-variant②⑤">font-variant</a>
      <td>normal | none |
[
&lt;common-lig-values> || &lt;discretionary-lig-values> || &lt;historical-lig-values> || &lt;contextual-alt-values> ||
stylistic(&lt;feature-value-name>) || historical-forms || styleset(&lt;feature-value-name>#) ||
character-variant(&lt;feature-value-name>#) || swash(&lt;feature-value-name>) || ornaments(&lt;feature-value-name>) ||
annotation(&lt;feature-value-name>) || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] ||
&lt;numeric-figure-values> || &lt;numeric-spacing-values> || &lt;numeric-fraction-values> || ordinal || slashed-zero ||
&lt;east-asian-variant-values> || &lt;east-asian-width-values> || ruby
]
      <td>normal
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-font-weight" id="ref-for-descdef-font-face-font-weight">font-weight</a>
      <td>normal | bold | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
      <td>normal
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-src" id="ref-for-descdef-font-face-src④">src</a>
      <td>[ &lt;url> format(&lt;string>#)? | local(&lt;family-name>) ]#
      <td>n/a (required)
     <tr>
      <th scope="row"><a class="css" data-link-type="descriptor" href="#descdef-font-face-unicode-range" id="ref-for-descdef-font-face-unicode-range⑤">unicode-range</a>
      <td>&lt;unicode-range>#
      <td>U+0-10FFFF
   </table>
  </div>
  <h2 class="no-num no-ref heading settled" id="idl-index"><span class="content">IDL Index</span><a class="self-link" href="#idl-index"></a></h2>
<pre class="idl highlight def"><c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="#cssfontfacerule" id="ref-for-cssfontfacerule①①"><c- g>CSSFontFaceRule</c-></a> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule④"><c- n>CSSRule</c-></a> {
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring①③"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfacerule-family"><code><c- g>family</c-></code></a>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring①②"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfacerule-src"><code><c- g>src</c-></code></a>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring②①"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfacerule-style"><code><c- g>style</c-></code></a>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring③①"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfacerule-weight"><code><c- g>weight</c-></code></a>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring④①"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfacerule-stretch"><code><c- g>stretch</c-></code></a>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑤①"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfacerule-unicoderange"><code><c- g>unicodeRange</c-></code></a>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑥①"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfacerule-variant"><code><c- g>variant</c-></code></a>;
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑦①"><c- n>CSSOMString</c-></a> <a data-type="CSSOMString" href="#dom-cssfontfacerule-featuresettings"><code><c- g>featureSettings</c-></code></a>;
};

<c- b>partial</c-> <c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule②①"><c- g>CSSRule</c-></a> {
  <c- b>const</c-> <a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-short" id="ref-for-idl-unsigned-short①"><c- b>unsigned</c-> <c- b>short</c-></a> <a href="#dom-cssrule-font_feature_values_rule"><code><c- g>FONT_FEATURE_VALUES_RULE</c-></code></a> = 14;
};

<c- b>interface</c-> <a class="idl-code" data-link-type="interface" href="#cssfontfeaturevaluesrule" id="ref-for-cssfontfeaturevaluesrule①①"><c- g>CSSFontFeatureValuesRule</c-></a> : <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssrule" id="ref-for-cssrule③①"><c- n>CSSRule</c-></a> {
  <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑧①"><c- n>CSSOMString</c-></a> <a class="idl-code" data-link-type="attribute" data-type="CSSOMString" href="#dom-cssfontfeaturevaluesrule-fontfamily" id="ref-for-dom-cssfontfeaturevaluesrule-fontfamily①"><c- g>fontFamily</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap①③"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-annotation" id="ref-for-dom-cssfontfeaturevaluesrule-annotation②"><c- g>annotation</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap①④"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-ornaments" id="ref-for-dom-cssfontfeaturevaluesrule-ornaments②"><c- g>ornaments</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap②①"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-stylistic" id="ref-for-dom-cssfontfeaturevaluesrule-stylistic①"><c- g>stylistic</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap③①"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-swash" id="ref-for-dom-cssfontfeaturevaluesrule-swash①"><c- g>swash</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap④①"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-charactervariant" id="ref-for-dom-cssfontfeaturevaluesrule-charactervariant①"><c- g>characterVariant</c-></a>;
  <c- b>readonly</c-> <c- b>attribute</c-> <a class="n" data-link-type="idl-name" href="#cssfontfeaturevaluesmap" id="ref-for-cssfontfeaturevaluesmap⑤①"><c- n>CSSFontFeatureValuesMap</c-></a> <a class="idl-code" data-link-type="attribute" data-readonly data-type="CSSFontFeatureValuesMap" href="#dom-cssfontfeaturevaluesrule-styleset" id="ref-for-dom-cssfontfeaturevaluesrule-styleset①"><c- g>styleset</c-></a>;
};

[<a class="idl-code" data-link-type="extended-attribute"><c- g>MapClass</c-></a>(<a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring⑨①"><c- n>CSSOMString</c-></a>, <c- b>sequence</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long③"><c- b>unsigned</c-> <c- b>long</c-></a>>)]
<c- b>interface</c-> <a href="#cssfontfeaturevaluesmap"><code><c- g>CSSFontFeatureValuesMap</c-></code></a> {
  <c- b>void</c-> <a href="#dom-cssfontfeaturevaluesmap-set"><code><c- g>set</c-></code></a>(<a class="n" data-link-type="idl-name" href="https://drafts.csswg.org/cssom-1/#cssomstring" id="ref-for-cssomstring①⓪①"><c- n>CSSOMString</c-></a> <a href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename"><code><c- g>featureValueName</c-></code></a>,
           (<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long①①"><c- b>unsigned</c-> <c- b>long</c-></a> <c- b>or</c-> <c- b>sequence</c->&lt;<a class="idl-code" data-link-type="interface" href="https://heycam.github.io/webidl/#idl-unsigned-long" id="ref-for-idl-unsigned-long②①"><c- b>unsigned</c-> <c- b>long</c-></a>>) <a href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-values"><code><c- g>values</c-></code></a>);
};

</pre>
  <aside class="dfn-panel" data-for="propdef-font-family">
   <b><a href="#propdef-font-family">#propdef-font-family</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-family">3.1. Font family: the font-family property</a>
    <li><a href="#ref-for-propdef-font-family①">3.7. Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-family②">(2)</a> <a href="#ref-for-propdef-font-family③">(3)</a> <a href="#ref-for-propdef-font-family④">(4)</a> <a href="#ref-for-propdef-font-family⑤">(5)</a>
    <li><a href="#ref-for-propdef-font-family⑥">4.3. Font reference: the src descriptor</a>
    <li><a href="#ref-for-propdef-font-family⑦">4.8. Font loading guidelines</a>
    <li><a href="#ref-for-propdef-font-family⑧">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-family⑨">(2)</a> <a href="#ref-for-propdef-font-family①⓪">(3)</a>
    <li><a href="#ref-for-propdef-font-family①①">5.4. Character handling issues</a> <a href="#ref-for-propdef-font-family①②">(2)</a>
    <li><a href="#ref-for-propdef-font-family①③">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-generic-family">
   <b><a href="#typedef-generic-family">#typedef-generic-family</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-generic-family">3.1. Font family: the font-family property</a> <a href="#ref-for-typedef-generic-family①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-generic-family-serif">
   <b><a href="#valdef-generic-family-serif">#valdef-generic-family-serif</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-generic-family-serif">3.1. Font family: the font-family property</a> <a href="#ref-for-valdef-generic-family-serif①">(2)</a>
    <li><a href="#ref-for-valdef-generic-family-serif②">serif</a> <a href="#ref-for-valdef-generic-family-serif③">(2)</a> <a href="#ref-for-valdef-generic-family-serif④">(3)</a>
    <li><a href="#ref-for-valdef-generic-family-serif⑤">sans-serif</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-generic-family-sans-serif">
   <b><a href="#valdef-generic-family-sans-serif">#valdef-generic-family-sans-serif</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-generic-family-sans-serif">3.1. Font family: the font-family property</a> <a href="#ref-for-valdef-generic-family-sans-serif①">(2)</a>
    <li><a href="#ref-for-valdef-generic-family-sans-serif②">serif</a>
    <li><a href="#ref-for-valdef-generic-family-sans-serif③">sans-serif</a> <a href="#ref-for-valdef-generic-family-sans-serif④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-generic-family-cursive">
   <b><a href="#valdef-generic-family-cursive">#valdef-generic-family-cursive</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-generic-family-cursive">3.1. Font family: the font-family property</a> <a href="#ref-for-valdef-generic-family-cursive①">(2)</a>
    <li><a href="#ref-for-valdef-generic-family-cursive②">cursive</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-generic-family-fantasy">
   <b><a href="#valdef-generic-family-fantasy">#valdef-generic-family-fantasy</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-generic-family-fantasy">3.1. Font family: the font-family property</a> <a href="#ref-for-valdef-generic-family-fantasy①">(2)</a>
    <li><a href="#ref-for-valdef-generic-family-fantasy②">3.7. Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-generic-family-monospace">
   <b><a href="#valdef-generic-family-monospace">#valdef-generic-family-monospace</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-generic-family-monospace">3.1. Font family: the font-family property</a> <a href="#ref-for-valdef-generic-family-monospace①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-weight">
   <b><a href="#propdef-font-weight">#propdef-font-weight</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-weight">3.2. Font weight: the font-weight property</a> <a href="#ref-for-propdef-font-weight①">(2)</a> <a href="#ref-for-propdef-font-weight②">(3)</a>
    <li><a href="#ref-for-propdef-font-weight③">3.7. Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-weight④">(2)</a> <a href="#ref-for-propdef-font-weight⑤">(3)</a> <a href="#ref-for-propdef-font-weight⑥">(4)</a> <a href="#ref-for-propdef-font-weight⑦">(5)</a> <a href="#ref-for-propdef-font-weight⑧">(6)</a>
    <li><a href="#ref-for-propdef-font-weight⑨">3.8. Controlling synthetic faces: the font-synthesis property</a>
    <li><a href="#ref-for-propdef-font-weight①⓪">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-weight①①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-weight-400">
   <b><a href="#valdef-font-weight-400">#valdef-font-weight-400</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-weight-400">3.2. Font weight: the font-weight property</a> <a href="#ref-for-valdef-font-weight-400①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-weight-700">
   <b><a href="#valdef-font-weight-700">#valdef-font-weight-700</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-weight-700">3.2. Font weight: the font-weight property</a> <a href="#ref-for-valdef-font-weight-700①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-weight-bold">
   <b><a href="#valdef-font-weight-bold">#valdef-font-weight-bold</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-weight-bold">3.7. Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-weight-bolder">
   <b><a href="#valdef-font-weight-bolder">#valdef-font-weight-bolder</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-weight-bolder">3.2. Font weight: the font-weight property</a>
    <li><a href="#ref-for-valdef-font-weight-bolder①">4.4. 
Font property descriptors: the font-style, font-weight, font-stretch descriptors</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-weight-lighter">
   <b><a href="#valdef-font-weight-lighter">#valdef-font-weight-lighter</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-weight-lighter">3.2. Font weight: the font-weight property</a>
    <li><a href="#ref-for-valdef-font-weight-lighter①">4.4. 
Font property descriptors: the font-style, font-weight, font-stretch descriptors</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-stretch">
   <b><a href="#propdef-font-stretch">#propdef-font-stretch</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-stretch">3.3. Font width: the font-stretch property</a> <a href="#ref-for-propdef-font-stretch①">(2)</a>
    <li><a href="#ref-for-propdef-font-stretch②">3.7. Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-stretch③">(2)</a> <a href="#ref-for-propdef-font-stretch④">(3)</a> <a href="#ref-for-propdef-font-stretch⑤">(4)</a> <a href="#ref-for-propdef-font-stretch⑥">(5)</a>
    <li><a href="#ref-for-propdef-font-stretch⑦">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-stretch⑧">(2)</a> <a href="#ref-for-propdef-font-stretch⑨">(3)</a> <a href="#ref-for-propdef-font-stretch①⓪">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-stretch-normal">
   <b><a href="#valdef-font-stretch-normal">#valdef-font-stretch-normal</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-stretch-normal">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-style">
   <b><a href="#propdef-font-style">#propdef-font-style</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-style">3.4. Font style: the font-style property</a> <a href="#ref-for-propdef-font-style①">(2)</a>
    <li><a href="#ref-for-propdef-font-style②">3.7. Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-style③">(2)</a> <a href="#ref-for-propdef-font-style④">(3)</a> <a href="#ref-for-propdef-font-style⑤">(4)</a> <a href="#ref-for-propdef-font-style⑥">(5)</a>
    <li><a href="#ref-for-propdef-font-style⑦">3.8. Controlling synthetic faces: the font-synthesis property</a>
    <li><a href="#ref-for-propdef-font-style⑧">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-style⑨">(2)</a> <a href="#ref-for-propdef-font-style①⓪">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-style-normal">
   <b><a href="#valdef-font-style-normal">#valdef-font-style-normal</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-style-normal">3.7. Shorthand font property: the font property</a>
    <li><a href="#ref-for-valdef-font-style-normal①">3.8. Controlling synthetic faces: the font-synthesis property</a>
    <li><a href="#ref-for-valdef-font-style-normal②">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-style-italic">
   <b><a href="#valdef-font-style-italic">#valdef-font-style-italic</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-style-italic">3.7. Shorthand font property: the font property</a>
    <li><a href="#ref-for-valdef-font-style-italic①">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-style-oblique">
   <b><a href="#valdef-font-style-oblique">#valdef-font-style-oblique</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-style-oblique">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-size">
   <b><a href="#propdef-font-size">#propdef-font-size</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-size">3.5. Font size: the font-size property</a> <a href="#ref-for-propdef-font-size①">(2)</a> <a href="#ref-for-propdef-font-size②">(3)</a>
    <li><a href="#ref-for-propdef-font-size③">3.6. Relative sizing: the font-size-adjust property</a> <a href="#ref-for-propdef-font-size④">(2)</a> <a href="#ref-for-propdef-font-size⑤">(3)</a> <a href="#ref-for-propdef-font-size⑥">(4)</a> <a href="#ref-for-propdef-font-size⑦">(5)</a>
    <li><a href="#ref-for-propdef-font-size⑧">3.7. Shorthand font property: the font property</a> <a href="#ref-for-propdef-font-size⑨">(2)</a> <a href="#ref-for-propdef-font-size①⓪">(3)</a> <a href="#ref-for-propdef-font-size①①">(4)</a> <a href="#ref-for-propdef-font-size①②">(5)</a>
    <li><a href="#ref-for-propdef-font-size①③">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-size①④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-font-size-absolute-size">
   <b><a href="#typedef-font-size-absolute-size">#typedef-font-size-absolute-size</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-font-size-absolute-size">3.5. Font size: the font-size property</a> <a href="#ref-for-typedef-font-size-absolute-size①">(2)</a> <a href="#ref-for-typedef-font-size-absolute-size②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-font-size-relative-size">
   <b><a href="#typedef-font-size-relative-size">#typedef-font-size-relative-size</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-font-size-relative-size">3.5. Font size: the font-size property</a> <a href="#ref-for-typedef-font-size-relative-size①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-relative-size-font-size-larger">
   <b><a href="#valdef-relative-size-font-size-larger">#valdef-relative-size-font-size-larger</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-relative-size-font-size-larger">3.5. Font size: the font-size property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-size-absolute-size-medium">
   <b><a href="#valdef-font-size-absolute-size-medium">#valdef-font-size-absolute-size-medium</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-size-absolute-size-medium">3.5. Font size: the font-size property</a> <a href="#ref-for-valdef-font-size-absolute-size-medium①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-size-absolute-size-large">
   <b><a href="#valdef-font-size-absolute-size-large">#valdef-font-size-absolute-size-large</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-size-absolute-size-large">3.5. Font size: the font-size property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-size-adjust">
   <b><a href="#propdef-font-size-adjust">#propdef-font-size-adjust</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-size-adjust">3.5. Font size: the font-size property</a> <a href="#ref-for-propdef-font-size-adjust①">(2)</a>
    <li><a href="#ref-for-propdef-font-size-adjust②">3.6. Relative sizing: the font-size-adjust property</a> <a href="#ref-for-propdef-font-size-adjust③">(2)</a> <a href="#ref-for-propdef-font-size-adjust④">(3)</a> <a href="#ref-for-propdef-font-size-adjust⑤">(4)</a> <a href="#ref-for-propdef-font-size-adjust⑥">(5)</a> <a href="#ref-for-propdef-font-size-adjust⑦">(6)</a> <a href="#ref-for-propdef-font-size-adjust⑧">(7)</a> <a href="#ref-for-propdef-font-size-adjust⑨">(8)</a> <a href="#ref-for-propdef-font-size-adjust①⓪">(9)</a> <a href="#ref-for-propdef-font-size-adjust①①">(10)</a> <a href="#ref-for-propdef-font-size-adjust①②">(11)</a> <a href="#ref-for-propdef-font-size-adjust①③">(12)</a>
    <li><a href="#ref-for-propdef-font-size-adjust①④">3.7. Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-size-adjust①⑤"> Changes from the July 2013 CSS3 Fonts Last Call Working Draft</a> <a href="#ref-for-propdef-font-size-adjust①⑥">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-aspect-value">
   <b><a href="#font-aspect-value">#font-aspect-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-aspect-value">3.6. Relative sizing: the font-size-adjust property</a> <a href="#ref-for-font-aspect-value①">(2)</a> <a href="#ref-for-font-aspect-value②">(3)</a> <a href="#ref-for-font-aspect-value③">(4)</a> <a href="#ref-for-font-aspect-value④">(5)</a> <a href="#ref-for-font-aspect-value⑤">(6)</a> <a href="#ref-for-font-aspect-value⑥">(7)</a> <a href="#ref-for-font-aspect-value⑦">(8)</a> <a href="#ref-for-font-aspect-value⑧">(9)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font">
   <b><a href="#propdef-font">#propdef-font</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font">3.7. Shorthand font property: the font property</a> <a href="#ref-for-propdef-font①">(2)</a> <a href="#ref-for-propdef-font②">(3)</a> <a href="#ref-for-propdef-font③">(4)</a> <a href="#ref-for-propdef-font④">(5)</a> <a href="#ref-for-propdef-font⑤">(6)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-font-variant-css21">
   <b><a href="#typedef-font-variant-css21">#typedef-font-variant-css21</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-font-variant-css21">3.7. Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-css21-font-small-caps">
   <b><a href="#valdef-font-variant-css21-font-small-caps">#valdef-font-variant-css21-font-small-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-css21-font-small-caps">3.7. Shorthand font property: the font property</a>
    <li><a href="#ref-for-valdef-font-variant-css21-font-small-caps①">6.6. Capitalization: the font-variant-caps property</a> <a href="#ref-for-valdef-font-variant-css21-font-small-caps②">(2)</a> <a href="#ref-for-valdef-font-variant-css21-font-small-caps③">(3)</a> <a href="#ref-for-valdef-font-variant-css21-font-small-caps④">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-caption">
   <b><a href="#valdef-font-caption">#valdef-font-caption</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-caption">3.7. Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-small-caption">
   <b><a href="#valdef-font-small-caption">#valdef-font-small-caption</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-small-caption">3.7. Shorthand font property: the font property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-synthesis">
   <b><a href="#propdef-font-synthesis">#propdef-font-synthesis</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-synthesis">3.2. Font weight: the font-weight property</a>
    <li><a href="#ref-for-propdef-font-synthesis①">3.4. Font style: the font-style property</a>
    <li><a href="#ref-for-propdef-font-synthesis②">3.8. Controlling synthetic faces: the font-synthesis property</a>
    <li><a href="#ref-for-propdef-font-synthesis③">5.2. Matching font styles</a> <a href="#ref-for-propdef-font-synthesis④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="at-ruledef-font-face">
   <b><a href="#at-ruledef-font-face">#at-ruledef-font-face</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-at-ruledef-font-face">4.1. The @font-face rule</a> <a href="#ref-for-at-ruledef-font-face①">(2)</a> <a href="#ref-for-at-ruledef-font-face②">(3)</a> <a href="#ref-for-at-ruledef-font-face③">(4)</a> <a href="#ref-for-at-ruledef-font-face④">(5)</a> <a href="#ref-for-at-ruledef-font-face⑤">(6)</a> <a href="#ref-for-at-ruledef-font-face⑥">(7)</a> <a href="#ref-for-at-ruledef-font-face⑦">(8)</a> <a href="#ref-for-at-ruledef-font-face⑧">(9)</a> <a href="#ref-for-at-ruledef-font-face⑨">(10)</a> <a href="#ref-for-at-ruledef-font-face①⓪">(11)</a>
    <li><a href="#ref-for-at-ruledef-font-face①①">4.2. Font family: the font-family descriptor</a> <a href="#ref-for-at-ruledef-font-face①②">(2)</a>
    <li><a href="#ref-for-at-ruledef-font-face①③">4.3. Font reference: the src descriptor</a> <a href="#ref-for-at-ruledef-font-face①④">(2)</a> <a href="#ref-for-at-ruledef-font-face①⑤">(3)</a> <a href="#ref-for-at-ruledef-font-face①⑥">(4)</a> <a href="#ref-for-at-ruledef-font-face①⑦">(5)</a> <a href="#ref-for-at-ruledef-font-face①⑧">(6)</a>
    <li><a href="#ref-for-at-ruledef-font-face①⑨">4.4. 
Font property descriptors: the font-style, font-weight, font-stretch descriptors</a> <a href="#ref-for-at-ruledef-font-face②⓪">(2)</a> <a href="#ref-for-at-ruledef-font-face②①">(3)</a> <a href="#ref-for-at-ruledef-font-face②②">(4)</a> <a href="#ref-for-at-ruledef-font-face②③">(5)</a> <a href="#ref-for-at-ruledef-font-face②④">(6)</a> <a href="#ref-for-at-ruledef-font-face②⑤">(7)</a>
    <li><a href="#ref-for-at-ruledef-font-face②⑥">4.5. Character range: the unicode-range descriptor</a>
    <li><a href="#ref-for-at-ruledef-font-face②⑦">4.6. Using character ranges to define composite fonts</a> <a href="#ref-for-at-ruledef-font-face②⑧">(2)</a> <a href="#ref-for-at-ruledef-font-face②⑨">(3)</a> <a href="#ref-for-at-ruledef-font-face③⓪">(4)</a>
    <li><a href="#ref-for-at-ruledef-font-face③①">4.7. Font features: the font-variant and font-feature-settings descriptors</a> <a href="#ref-for-at-ruledef-font-face③②">(2)</a> <a href="#ref-for-at-ruledef-font-face③③">(3)</a>
    <li><a href="#ref-for-at-ruledef-font-face③④">4.8. Font loading guidelines</a> <a href="#ref-for-at-ruledef-font-face③⑤">(2)</a> <a href="#ref-for-at-ruledef-font-face③⑥">(3)</a>
    <li><a href="#ref-for-at-ruledef-font-face③⑦">5.1. Case sensitivity of font family names</a> <a href="#ref-for-at-ruledef-font-face③⑧">(2)</a>
    <li><a href="#ref-for-at-ruledef-font-face③⑨">5.2. Matching font styles</a> <a href="#ref-for-at-ruledef-font-face④⓪">(2)</a> <a href="#ref-for-at-ruledef-font-face④①">(3)</a> <a href="#ref-for-at-ruledef-font-face④②">(4)</a> <a href="#ref-for-at-ruledef-font-face④③">(5)</a> <a href="#ref-for-at-ruledef-font-face④④">(6)</a> <a href="#ref-for-at-ruledef-font-face④⑤">(7)</a>
    <li><a href="#ref-for-at-ruledef-font-face④⑥">7. 
Font Feature Resolution </a>
    <li><a href="#ref-for-at-ruledef-font-face④⑦">7.2. Feature precedence</a> <a href="#ref-for-at-ruledef-font-face④⑧">(2)</a> <a href="#ref-for-at-ruledef-font-face④⑨">(3)</a> <a href="#ref-for-at-ruledef-font-face⑤⓪">(4)</a> <a href="#ref-for-at-ruledef-font-face⑤①">(5)</a> <a href="#ref-for-at-ruledef-font-face⑤②">(6)</a>
    <li><a href="#ref-for-at-ruledef-font-face⑤③">7.3. Feature precedence examples</a> <a href="#ref-for-at-ruledef-font-face⑤④">(2)</a> <a href="#ref-for-at-ruledef-font-face⑤⑤">(3)</a>
    <li><a href="#ref-for-at-ruledef-font-face⑤⑥">8. Object Model</a>
    <li><a href="#ref-for-at-ruledef-font-face⑤⑦">8.1. The CSSFontFaceRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descriptor_declaration">
   <b><a href="#descriptor_declaration">#descriptor_declaration</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descriptor_declaration">4.1. The @font-face rule</a> <a href="#ref-for-descriptor_declaration①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font_face_sym">
   <b><a href="#font_face_sym">#font_face_sym</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font_face_sym">4.1. The @font-face rule</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-src">
   <b><a href="#descdef-font-face-src">#descdef-font-face-src</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-src">4.3. Font reference: the src descriptor</a>
    <li><a href="#ref-for-descdef-font-face-src①">4.9. Font fetching requirements </a> <a href="#ref-for-descdef-font-face-src②">(2)</a>
    <li><a href="#ref-for-descdef-font-face-src③">7.3. Feature precedence examples</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="funcdef-font-face-src-local">
   <b><a href="#funcdef-font-face-src-local">#funcdef-font-face-src-local</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-funcdef-font-face-src-local">4.3. Font reference: the src descriptor</a> <a href="#ref-for-funcdef-font-face-src-local①">(2)</a>
    <li><a href="#ref-for-funcdef-font-face-src-local②">7.3. Feature precedence examples</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-unicode-range">
   <b><a href="#descdef-font-face-unicode-range">#descdef-font-face-unicode-range</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-unicode-range">4.5. Character range: the unicode-range descriptor</a> <a href="#ref-for-descdef-font-face-unicode-range①">(2)</a> <a href="#ref-for-descdef-font-face-unicode-range②">(3)</a>
    <li><a href="#ref-for-descdef-font-face-unicode-range③">5.2. Matching font styles</a> <a href="#ref-for-descdef-font-face-unicode-range④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="effective-character-map">
   <b><a href="#effective-character-map">#effective-character-map</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-effective-character-map">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-variant">
   <b><a href="#descdef-font-face-font-variant">#descdef-font-face-font-variant</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-variant">3.7. Shorthand font property: the font property</a> <a href="#ref-for-descdef-font-face-font-variant①">(2)</a> <a href="#ref-for-descdef-font-face-font-variant②">(3)</a> <a href="#ref-for-descdef-font-face-font-variant③">(4)</a> <a href="#ref-for-descdef-font-face-font-variant④">(5)</a> <a href="#ref-for-descdef-font-face-font-variant⑤">(6)</a>
    <li><a href="#ref-for-descdef-font-face-font-variant⑥">4.7. Font features: the font-variant and font-feature-settings descriptors</a> <a href="#ref-for-descdef-font-face-font-variant⑦">(2)</a> <a href="#ref-for-descdef-font-face-font-variant⑧">(3)</a>
    <li><a href="#ref-for-descdef-font-face-font-variant⑨">6. Font Feature Properties</a>
    <li><a href="#ref-for-descdef-font-face-font-variant①⓪">6.1. Glyph selection and positioning</a>
    <li><a href="#ref-for-descdef-font-face-font-variant①①">6.11. Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-descdef-font-face-font-variant①②">(2)</a> <a href="#ref-for-descdef-font-face-font-variant①③">(3)</a> <a href="#ref-for-descdef-font-face-font-variant①④">(4)</a> <a href="#ref-for-descdef-font-face-font-variant①⑤">(5)</a>
    <li><a href="#ref-for-descdef-font-face-font-variant①⑥">6.12. Low-level font feature settings control: the font-feature-settings property</a>
    <li><a href="#ref-for-descdef-font-face-font-variant①⑦">7. 
Font Feature Resolution </a>
    <li><a href="#ref-for-descdef-font-face-font-variant①⑧">7.1. Default features</a>
    <li><a href="#ref-for-descdef-font-face-font-variant①⑨">7.2. Feature precedence</a> <a href="#ref-for-descdef-font-face-font-variant②⓪">(2)</a> <a href="#ref-for-descdef-font-face-font-variant②①">(3)</a> <a href="#ref-for-descdef-font-face-font-variant②②">(4)</a>
    <li><a href="#ref-for-descdef-font-face-font-variant②③"> Changes from the July 2013 CSS3 Fonts Last Call Working Draft</a>
    <li><a href="#ref-for-descdef-font-face-font-variant②④">Acknowledgments</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="descdef-font-face-font-feature-settings">
   <b><a href="#descdef-font-face-font-feature-settings">#descdef-font-face-font-feature-settings</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings①">6.11. Overall shorthand for font rendering: the font-variant property</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings②">6.12. Low-level font feature settings control: the font-feature-settings property</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings③">7. 
Font Feature Resolution </a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings④">7.1. Default features</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings⑤">7.2. Feature precedence</a> <a href="#ref-for-descdef-font-face-font-feature-settings⑥">(2)</a>
    <li><a href="#ref-for-descdef-font-face-font-feature-settings⑦">7.3. Feature precedence examples</a> <a href="#ref-for-descdef-font-face-font-feature-settings⑧">(2)</a> <a href="#ref-for-descdef-font-face-font-feature-settings⑨">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="character-map">
   <b><a href="#character-map">#character-map</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-character-map">2. Typography Background</a>
    <li><a href="#ref-for-character-map①">4.5. Character range: the unicode-range descriptor</a>
    <li><a href="#ref-for-character-map②">5.2. Matching font styles</a>
    <li><a href="#ref-for-character-map③">5.4. Character handling issues</a> <a href="#ref-for-character-map④">(2)</a> <a href="#ref-for-character-map⑤">(3)</a> <a href="#ref-for-character-map⑥">(4)</a>
    <li><a href="#ref-for-character-map⑦">6.1. Glyph selection and positioning</a>
    <li><a href="#ref-for-character-map⑧">Appendix A: Mapping platform font properties to CSS properties</a> <a href="#ref-for-character-map⑨">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="support">
   <b><a href="#support">#support</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-support">5.3. Cluster matching</a> <a href="#ref-for-support①">(2)</a> <a href="#ref-for-support②">(3)</a> <a href="#ref-for-support③">(4)</a> <a href="#ref-for-support④">(5)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="default-face">
   <b><a href="#default-face">#default-face</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-default-face">5.2. Matching font styles</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="composite-face">
   <b><a href="#composite-face">#composite-face</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-composite-face">5.2. Matching font styles</a> <a href="#ref-for-composite-face①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="system-font-fallback">
   <b><a href="#system-font-fallback">#system-font-fallback</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-system-font-fallback">5.3. Cluster matching</a>
    <li><a href="#ref-for-system-font-fallback①">5.4. Character handling issues</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="first-available-font">
   <b><a href="#first-available-font">#first-available-font</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-first-available-font">3.6. Relative sizing: the font-size-adjust property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-kerning">
   <b><a href="#propdef-font-kerning">#propdef-font-kerning</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-kerning">3.7. Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-kerning①">6.3. Kerning: the font-kerning property</a>
    <li><a href="#ref-for-propdef-font-kerning②">6.12. Low-level font feature settings control: the font-feature-settings property</a>
    <li><a href="#ref-for-propdef-font-kerning③">7.2. Feature precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-kerning-auto">
   <b><a href="#valdef-font-kerning-auto">#valdef-font-kerning-auto</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-kerning-auto">6.3. Kerning: the font-kerning property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-kerning-normal">
   <b><a href="#valdef-font-kerning-normal">#valdef-font-kerning-normal</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-kerning-normal">6.3. Kerning: the font-kerning property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-ligatures">
   <b><a href="#propdef-font-variant-ligatures">#propdef-font-variant-ligatures</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-ligatures">6.4. Ligatures: the font-variant-ligatures property</a>
    <li><a href="#ref-for-propdef-font-variant-ligatures①">6.11. Overall shorthand for font rendering: the font-variant property</a>
    <li><a href="#ref-for-propdef-font-variant-ligatures②">7.1. Default features</a>
    <li><a href="#ref-for-propdef-font-variant-ligatures③">7.3. Feature precedence examples</a> <a href="#ref-for-propdef-font-variant-ligatures④">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-common-lig-values">
   <b><a href="#typedef-common-lig-values">#typedef-common-lig-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-common-lig-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-common-lig-values①">6.4. Ligatures: the font-variant-ligatures property</a>
    <li><a href="#ref-for-typedef-common-lig-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-discretionary-lig-values">
   <b><a href="#typedef-discretionary-lig-values">#typedef-discretionary-lig-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-discretionary-lig-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-discretionary-lig-values①">6.4. Ligatures: the font-variant-ligatures property</a>
    <li><a href="#ref-for-typedef-discretionary-lig-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-historical-lig-values">
   <b><a href="#typedef-historical-lig-values">#typedef-historical-lig-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-historical-lig-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-historical-lig-values①">6.4. Ligatures: the font-variant-ligatures property</a>
    <li><a href="#ref-for-typedef-historical-lig-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-contextual-alt-values">
   <b><a href="#typedef-contextual-alt-values">#typedef-contextual-alt-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-contextual-alt-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-contextual-alt-values①">6.4. Ligatures: the font-variant-ligatures property</a>
    <li><a href="#ref-for-typedef-contextual-alt-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-ligatures-none">
   <b><a href="#valdef-font-variant-ligatures-none">#valdef-font-variant-ligatures-none</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-ligatures-none">6.4. Ligatures: the font-variant-ligatures property</a>
    <li><a href="#ref-for-valdef-font-variant-ligatures-none①">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-ligatures-common-lig-values-no-common-ligatures">
   <b><a href="#valdef-font-variant-ligatures-common-lig-values-no-common-ligatures">#valdef-font-variant-ligatures-common-lig-values-no-common-ligatures</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-ligatures-common-lig-values-no-common-ligatures">7.1. Default features</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-position">
   <b><a href="#propdef-font-variant-position">#propdef-font-variant-position</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-position①">6.5. Subscript and superscript forms: the font-variant-position property</a> <a href="#ref-for-propdef-font-variant-position②">(2)</a> <a href="#ref-for-propdef-font-variant-position③">(3)</a> <a href="#ref-for-propdef-font-variant-position④">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-position-normal">
   <b><a href="#valdef-font-variant-position-normal">#valdef-font-variant-position-normal</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-position-normal">6.5. Subscript and superscript forms: the font-variant-position property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-position-sub">
   <b><a href="#valdef-font-variant-position-sub">#valdef-font-variant-position-sub</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-position-sub">6.5. Subscript and superscript forms: the font-variant-position property</a> <a href="#ref-for-valdef-font-variant-position-sub①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-position-super">
   <b><a href="#valdef-font-variant-position-super">#valdef-font-variant-position-super</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-position-super">6.5. Subscript and superscript forms: the font-variant-position property</a> <a href="#ref-for-valdef-font-variant-position-super①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-caps">
   <b><a href="#propdef-font-variant-caps">#propdef-font-variant-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-caps">6.6. Capitalization: the font-variant-caps property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-caps-all-small-caps">
   <b><a href="#valdef-font-variant-caps-all-small-caps">#valdef-font-variant-caps-all-small-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-caps-all-small-caps">6.6. Capitalization: the font-variant-caps property</a> <a href="#ref-for-valdef-font-variant-caps-all-small-caps①">(2)</a> <a href="#ref-for-valdef-font-variant-caps-all-small-caps②">(3)</a> <a href="#ref-for-valdef-font-variant-caps-all-small-caps③">(4)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-caps-petite-caps">
   <b><a href="#valdef-font-variant-caps-petite-caps">#valdef-font-variant-caps-petite-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-caps-petite-caps">6.6. Capitalization: the font-variant-caps property</a> <a href="#ref-for-valdef-font-variant-caps-petite-caps①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-caps-all-petite-caps">
   <b><a href="#valdef-font-variant-caps-all-petite-caps">#valdef-font-variant-caps-all-petite-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-caps-all-petite-caps">6.6. Capitalization: the font-variant-caps property</a> <a href="#ref-for-valdef-font-variant-caps-all-petite-caps①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-caps-unicase">
   <b><a href="#valdef-font-variant-caps-unicase">#valdef-font-variant-caps-unicase</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-caps-unicase">6.6. Capitalization: the font-variant-caps property</a> <a href="#ref-for-valdef-font-variant-caps-unicase①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-caps-titling-caps">
   <b><a href="#valdef-font-variant-caps-titling-caps">#valdef-font-variant-caps-titling-caps</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-caps-titling-caps">6.6. Capitalization: the font-variant-caps property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-numeric">
   <b><a href="#propdef-font-variant-numeric">#propdef-font-variant-numeric</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-numeric">6.7. Numerical formatting: the font-variant-numeric property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-numeric-figure-values">
   <b><a href="#typedef-numeric-figure-values">#typedef-numeric-figure-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-numeric-figure-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-numeric-figure-values①">6.7. Numerical formatting: the font-variant-numeric property</a>
    <li><a href="#ref-for-typedef-numeric-figure-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-numeric-spacing-values">
   <b><a href="#typedef-numeric-spacing-values">#typedef-numeric-spacing-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-numeric-spacing-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-numeric-spacing-values①">6.7. Numerical formatting: the font-variant-numeric property</a>
    <li><a href="#ref-for-typedef-numeric-spacing-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-numeric-fraction-values">
   <b><a href="#typedef-numeric-fraction-values">#typedef-numeric-fraction-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-numeric-fraction-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-numeric-fraction-values①">6.7. Numerical formatting: the font-variant-numeric property</a>
    <li><a href="#ref-for-typedef-numeric-fraction-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-numeric-numeric-spacing-values-proportional-nums">
   <b><a href="#valdef-font-variant-numeric-numeric-spacing-values-proportional-nums">#valdef-font-variant-numeric-numeric-spacing-values-proportional-nums</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-numeric-numeric-spacing-values-proportional-nums">7.3. Feature precedence examples</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-numeric-numeric-spacing-values-tabular-nums">
   <b><a href="#valdef-font-variant-numeric-numeric-spacing-values-tabular-nums">#valdef-font-variant-numeric-numeric-spacing-values-tabular-nums</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-numeric-numeric-spacing-values-tabular-nums">7.3. Feature precedence examples</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-numeric-ordinal">
   <b><a href="#valdef-font-variant-numeric-ordinal">#valdef-font-variant-numeric-ordinal</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-numeric-ordinal">6.7. Numerical formatting: the font-variant-numeric property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-alternates">
   <b><a href="#propdef-font-variant-alternates">#propdef-font-variant-alternates</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-alternates">6.8. Alternates and swashes: the font-variant-alternates property</a>
    <li><a href="#ref-for-propdef-font-variant-alternates①">6.9. Defining font specific alternates: the @font-feature-values rule</a>
    <li><a href="#ref-for-propdef-font-variant-alternates②">6.9.1. Basic syntax</a>
    <li><a href="#ref-for-propdef-font-variant-alternates③">6.9.2. Multi-valued feature value definitions</a>
    <li><a href="#ref-for-propdef-font-variant-alternates④">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font-specific">
   <b><a href="#font-specific">#font-specific</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font-specific">6.8. Alternates and swashes: the font-variant-alternates property</a> <a href="#ref-for-font-specific①">(2)</a> <a href="#ref-for-font-specific②">(3)</a> <a href="#ref-for-font-specific③">(4)</a> <a href="#ref-for-font-specific④">(5)</a> <a href="#ref-for-font-specific⑤">(6)</a>
    <li><a href="#ref-for-font-specific⑥">6.9. Defining font specific alternates: the @font-feature-values rule</a>
    <li><a href="#ref-for-font-specific⑦">6.9.1. Basic syntax</a>
    <li><a href="#ref-for-font-specific⑧">6.9.2. Multi-valued feature value definitions</a>
    <li><a href="#ref-for-font-specific⑨">7.2. Feature precedence</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-alternates-styleset">
   <b><a href="#valdef-font-variant-alternates-styleset">#valdef-font-variant-alternates-styleset</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-alternates-styleset">6.9.2. Multi-valued feature value definitions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-alternates-character-variant">
   <b><a href="#valdef-font-variant-alternates-character-variant">#valdef-font-variant-alternates-character-variant</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-alternates-character-variant">6.9.2. Multi-valued feature value definitions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-alternates-swash">
   <b><a href="#valdef-font-variant-alternates-swash">#valdef-font-variant-alternates-swash</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-alternates-swash">6.9.2. Multi-valued feature value definitions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="at-ruledef-font-feature-values">
   <b><a href="#at-ruledef-font-feature-values">#at-ruledef-font-feature-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-at-ruledef-font-feature-values">6.8. Alternates and swashes: the font-variant-alternates property</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values①">6.9. Defining font specific alternates: the @font-feature-values rule</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values②">6.9.1. Basic syntax</a> <a href="#ref-for-at-ruledef-font-feature-values③">(2)</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values④">8. Object Model</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values⑤">8.2. The CSSFontFeatureValuesRule interface</a>
    <li><a href="#ref-for-at-ruledef-font-feature-values⑥">Acknowledgments</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font_family_name_list">
   <b><a href="#font_family_name_list">#font_family_name_list</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font_family_name_list">6.9.1. Basic syntax</a> <a href="#ref-for-font_family_name_list①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font_family_name">
   <b><a href="#font_family_name">#font_family_name</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font_family_name">6.9.1. Basic syntax</a> <a href="#ref-for-font_family_name①">(2)</a> <a href="#ref-for-font_family_name②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="feature_value_block">
   <b><a href="#feature_value_block">#feature_value_block</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-feature_value_block">6.9.1. Basic syntax</a> <a href="#ref-for-feature_value_block①">(2)</a> <a href="#ref-for-feature_value_block②">(3)</a> <a href="#ref-for-feature_value_block③">(4)</a> <a href="#ref-for-feature_value_block④">(5)</a> <a href="#ref-for-feature_value_block⑤">(6)</a>
    <li><a href="#ref-for-feature_value_block⑥">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-feature_value_block⑦">(2)</a> <a href="#ref-for-feature_value_block⑧">(3)</a> <a href="#ref-for-feature_value_block⑨">(4)</a> <a href="#ref-for-feature_value_block①⓪">(5)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="feature_type">
   <b><a href="#feature_type">#feature_type</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-feature_type">6.9.1. Basic syntax</a> <a href="#ref-for-feature_type①">(2)</a> <a href="#ref-for-feature_type②">(3)</a> <a href="#ref-for-feature_type③">(4)</a> <a href="#ref-for-feature_type④">(5)</a> <a href="#ref-for-feature_type⑤">(6)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="feature_value_definition">
   <b><a href="#feature_value_definition">#feature_value_definition</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-feature_value_definition">6.9.1. Basic syntax</a> <a href="#ref-for-feature_value_definition①">(2)</a> <a href="#ref-for-feature_value_definition②">(3)</a> <a href="#ref-for-feature_value_definition③">(4)</a>
    <li><a href="#ref-for-feature_value_definition④">6.9.2. Multi-valued feature value definitions</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="font_feature_values_sym">
   <b><a href="#font_feature_values_sym">#font_feature_values_sym</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-font_feature_values_sym">6.9.1. Basic syntax</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-feature-value-name">
   <b><a href="#typedef-feature-value-name">#typedef-feature-value-name</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-feature-value-name">4.7. Font features: the font-variant and font-feature-settings descriptors</a> <a href="#ref-for-typedef-feature-value-name①">(2)</a> <a href="#ref-for-typedef-feature-value-name②">(3)</a> <a href="#ref-for-typedef-feature-value-name③">(4)</a> <a href="#ref-for-typedef-feature-value-name④">(5)</a> <a href="#ref-for-typedef-feature-value-name⑤">(6)</a>
    <li><a href="#ref-for-typedef-feature-value-name⑥">6.8. Alternates and swashes: the font-variant-alternates property</a> <a href="#ref-for-typedef-feature-value-name⑦">(2)</a> <a href="#ref-for-typedef-feature-value-name⑧">(3)</a> <a href="#ref-for-typedef-feature-value-name⑨">(4)</a> <a href="#ref-for-typedef-feature-value-name①⓪">(5)</a> <a href="#ref-for-typedef-feature-value-name①①">(6)</a> <a href="#ref-for-typedef-feature-value-name①②">(7)</a> <a href="#ref-for-typedef-feature-value-name①③">(8)</a> <a href="#ref-for-typedef-feature-value-name①④">(9)</a> <a href="#ref-for-typedef-feature-value-name①⑤">(10)</a> <a href="#ref-for-typedef-feature-value-name①⑥">(11)</a> <a href="#ref-for-typedef-feature-value-name①⑦">(12)</a> <a href="#ref-for-typedef-feature-value-name①⑧">(13)</a> <a href="#ref-for-typedef-feature-value-name①⑨">(14)</a> <a href="#ref-for-typedef-feature-value-name②⓪">(15)</a>
    <li><a href="#ref-for-typedef-feature-value-name②①">6.11. Overall shorthand for font rendering: the font-variant property</a> <a href="#ref-for-typedef-feature-value-name②②">(2)</a> <a href="#ref-for-typedef-feature-value-name②③">(3)</a> <a href="#ref-for-typedef-feature-value-name②④">(4)</a> <a href="#ref-for-typedef-feature-value-name②⑤">(5)</a> <a href="#ref-for-typedef-feature-value-name②⑥">(6)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-feature-index">
   <b><a href="#typedef-feature-index">#typedef-feature-index</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-feature-index">6.8. Alternates and swashes: the font-variant-alternates property</a> <a href="#ref-for-typedef-feature-index①">(2)</a> <a href="#ref-for-typedef-feature-index②">(3)</a> <a href="#ref-for-typedef-feature-index③">(4)</a> <a href="#ref-for-typedef-feature-index④">(5)</a> <a href="#ref-for-typedef-feature-index⑤">(6)</a> <a href="#ref-for-typedef-feature-index⑥">(7)</a> <a href="#ref-for-typedef-feature-index⑦">(8)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-variant-east-asian">
   <b><a href="#propdef-font-variant-east-asian">#propdef-font-variant-east-asian</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-variant-east-asian">6.10. East Asian text rendering: the font-variant-east-asian property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-east-asian-variant-values">
   <b><a href="#typedef-east-asian-variant-values">#typedef-east-asian-variant-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-east-asian-variant-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-east-asian-variant-values①">6.10. East Asian text rendering: the font-variant-east-asian property</a>
    <li><a href="#ref-for-typedef-east-asian-variant-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-east-asian-width-values">
   <b><a href="#typedef-east-asian-width-values">#typedef-east-asian-width-values</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-east-asian-width-values">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-east-asian-width-values①">6.10. East Asian text rendering: the font-variant-east-asian property</a>
    <li><a href="#ref-for-typedef-east-asian-width-values②">6.11. Overall shorthand for font rendering: the font-variant property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-east-asian-east-asian-variant-values-simplified">
   <b><a href="#valdef-font-variant-east-asian-east-asian-variant-values-simplified">#valdef-font-variant-east-asian-east-asian-variant-values-simplified</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-east-asian-east-asian-variant-values-simplified">6.10. East Asian text rendering: the font-variant-east-asian property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-east-asian-east-asian-variant-values-traditional">
   <b><a href="#valdef-font-variant-east-asian-east-asian-variant-values-traditional">#valdef-font-variant-east-asian-east-asian-variant-values-traditional</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-east-asian-east-asian-variant-values-traditional">6.10. East Asian text rendering: the font-variant-east-asian property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="valdef-font-variant-normal">
   <b><a href="#valdef-font-variant-normal">#valdef-font-variant-normal</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-valdef-font-variant-normal">3.7. Shorthand font property: the font property</a> <a href="#ref-for-valdef-font-variant-normal①">(2)</a>
    <li><a href="#ref-for-valdef-font-variant-normal②">7.1. Default features</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="typedef-feature-tag-value">
   <b><a href="#typedef-feature-tag-value">#typedef-feature-tag-value</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-typedef-feature-tag-value">4.7. Font features: the font-variant and font-feature-settings descriptors</a>
    <li><a href="#ref-for-typedef-feature-tag-value①">6.12. Low-level font feature settings control: the font-feature-settings property</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="propdef-font-language-override">
   <b><a href="#propdef-font-language-override">#propdef-font-language-override</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-propdef-font-language-override①">3.7. Shorthand font property: the font property</a>
    <li><a href="#ref-for-propdef-font-language-override②">6.2. Language-specific display</a>
    <li><a href="#ref-for-propdef-font-language-override③">6.11. Overall shorthand for font rendering: the font-variant property</a>
    <li><a href="#ref-for-propdef-font-language-override④">6.13. Font language override: the font-language-override property</a> <a href="#ref-for-propdef-font-language-override⑤">(2)</a> <a href="#ref-for-propdef-font-language-override⑥">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="cssfontfacerule">
   <b><a href="#cssfontfacerule">#cssfontfacerule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssfontfacerule">8.1. The CSSFontFaceRule interface</a> <a href="#ref-for-cssfontfacerule①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="cssfontfeaturevaluesrule">
   <b><a href="#cssfontfeaturevaluesrule">#cssfontfeaturevaluesrule</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssfontfeaturevaluesrule">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-cssfontfeaturevaluesrule①">(2)</a> <a href="#ref-for-cssfontfeaturevaluesrule②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="cssfontfeaturevaluesmap">
   <b><a href="#cssfontfeaturevaluesmap">#cssfontfeaturevaluesmap</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-cssfontfeaturevaluesmap">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-cssfontfeaturevaluesmap①">(2)</a> <a href="#ref-for-cssfontfeaturevaluesmap②">(3)</a> <a href="#ref-for-cssfontfeaturevaluesmap③">(4)</a> <a href="#ref-for-cssfontfeaturevaluesmap④">(5)</a> <a href="#ref-for-cssfontfeaturevaluesmap⑤">(6)</a> <a href="#ref-for-cssfontfeaturevaluesmap⑥">(7)</a> <a href="#ref-for-cssfontfeaturevaluesmap⑦">(8)</a> <a href="#ref-for-cssfontfeaturevaluesmap⑧">(9)</a> <a href="#ref-for-cssfontfeaturevaluesmap⑨">(10)</a> <a href="#ref-for-cssfontfeaturevaluesmap①⓪">(11)</a> <a href="#ref-for-cssfontfeaturevaluesmap①①">(12)</a> <a href="#ref-for-cssfontfeaturevaluesmap①②">(13)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesmap-set">
   <b><a href="#dom-cssfontfeaturevaluesmap-set">#dom-cssfontfeaturevaluesmap-set</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesmap-set">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-dom-cssfontfeaturevaluesmap-set①">(2)</a> <a href="#ref-for-dom-cssfontfeaturevaluesmap-set②">(3)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename">
   <b><a href="#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename">#dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesmap-set-featurevaluename-values-featurevaluename">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesrule-fontfamily">
   <b><a href="#dom-cssfontfeaturevaluesrule-fontfamily">#dom-cssfontfeaturevaluesrule-fontfamily</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesrule-fontfamily">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesrule-annotation">
   <b><a href="#dom-cssfontfeaturevaluesrule-annotation">#dom-cssfontfeaturevaluesrule-annotation</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesrule-annotation">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-dom-cssfontfeaturevaluesrule-annotation①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesrule-ornaments">
   <b><a href="#dom-cssfontfeaturevaluesrule-ornaments">#dom-cssfontfeaturevaluesrule-ornaments</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesrule-ornaments">8.2. The CSSFontFeatureValuesRule interface</a> <a href="#ref-for-dom-cssfontfeaturevaluesrule-ornaments①">(2)</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesrule-stylistic">
   <b><a href="#dom-cssfontfeaturevaluesrule-stylistic">#dom-cssfontfeaturevaluesrule-stylistic</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesrule-stylistic">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesrule-swash">
   <b><a href="#dom-cssfontfeaturevaluesrule-swash">#dom-cssfontfeaturevaluesrule-swash</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesrule-swash">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesrule-charactervariant">
   <b><a href="#dom-cssfontfeaturevaluesrule-charactervariant">#dom-cssfontfeaturevaluesrule-charactervariant</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesrule-charactervariant">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
  <aside class="dfn-panel" data-for="dom-cssfontfeaturevaluesrule-styleset">
   <b><a href="#dom-cssfontfeaturevaluesrule-styleset">#dom-cssfontfeaturevaluesrule-styleset</a></b><b>Referenced in:</b>
   <ul>
    <li><a href="#ref-for-dom-cssfontfeaturevaluesrule-styleset">8.2. The CSSFontFeatureValuesRule interface</a>
   </ul>
  </aside>
<script>/* script-dfn-panel */

document.body.addEventListener("click", function(e) {
    var queryAll = function(sel) { return [].slice.call(document.querySelectorAll(sel)); }
    // Find the dfn element or panel, if any, that was clicked on.
    var el = e.target;
    var target;
    var hitALink = false;
    while(el.parentElement) {
        if(el.tagName == "A") {
            // Clicking on a link in a <dfn> shouldn't summon the panel
            hitALink = true;
        }
        if(el.classList.contains("dfn-paneled")) {
            target = "dfn";
            break;
        }
        if(el.classList.contains("dfn-panel")) {
            target = "dfn-panel";
            break;
        }
        el = el.parentElement;
    }
    if(target != "dfn-panel") {
        // Turn off any currently "on" or "activated" panels.
        queryAll(".dfn-panel.on, .dfn-panel.activated").forEach(function(el){
            el.classList.remove("on");
            el.classList.remove("activated");
        });
    }
    if(target == "dfn" && !hitALink) {
        // open the panel
        var dfnPanel = document.querySelector(".dfn-panel[data-for='" + el.id + "']");
        if(dfnPanel) {
            dfnPanel.classList.add("on");
            var rect = el.getBoundingClientRect();
            dfnPanel.style.left = window.scrollX + rect.right + 5 + "px";
            dfnPanel.style.top = window.scrollY + rect.top + "px";
            var panelRect = dfnPanel.getBoundingClientRect();
            var panelWidth = panelRect.right - panelRect.left;
            if(panelRect.right > document.body.scrollWidth && (rect.left - (panelWidth + 5)) > 0) {
                // Reposition, because the panel is overflowing
                dfnPanel.style.left = window.scrollX + rect.left - (panelWidth + 5) + "px";
            }
        } else {
            console.log("Couldn't find .dfn-panel[data-for='" + el.id + "']");
        }
    } else if(target == "dfn-panel") {
        // Switch it to "activated" state, which pins it.
        el.classList.add("activated");
        el.style.left = null;
        el.style.top = null;
    }

});
</script>